diff options
Diffstat (limited to 'gnu/usr.bin/ld/sparc/md.c')
-rw-r--r-- | gnu/usr.bin/ld/sparc/md.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gnu/usr.bin/ld/sparc/md.c b/gnu/usr.bin/ld/sparc/md.c index 15281cc..508d37d 100644 --- a/gnu/usr.bin/ld/sparc/md.c +++ b/gnu/usr.bin/ld/sparc/md.c @@ -14,7 +14,7 @@ * must display the following acknowledgement: * This product includes software developed by Paul Kranenburg. * 4. The name of the author may not be used to endorse or promote products - * derived from this software withough specific prior written permission + * derived from this software without specific prior written permission * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -27,15 +27,16 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: md.c,v 1.6 1993/12/11 12:02:10 jkh Exp $ + * $Id: md.c,v 1.7 1994/02/13 20:43:03 jkh Exp $ */ #include <sys/param.h> +#include <sys/types.h> +#include <a.out.h> #include <stdio.h> #include <stdlib.h> -#include <sys/types.h> +#include <err.h> #include <fcntl.h> -#include <a.out.h> #include <stab.h> #include <string.h> @@ -165,7 +166,8 @@ int relocatable_output; *(u_long *) (addr) |= relocation; break; default: - fatal( "Unimplemented relocation field length in"); + errx(1, "Unimplemented relocation field length: %d", + RELOC_TARGET_SIZE(r)); } } |