X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fi386linux.c;h=74f208a89e63b8ccd7be72b2d455631ac0923ede;hb=49ded53def53ae60926433b924db9525aae1e631;hp=8dd1d0d2d0c8be4e26df62bd9c13ffd8e810a2ce;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/i386linux.c b/bfd/i386linux.c index 8dd1d0d2d0..74f208a89e 100644 --- a/bfd/i386linux.c +++ b/bfd/i386linux.c @@ -1,5 +1,5 @@ /* BFD back-end for linux flavored i386 a.out binaries. - Copyright (C) 1992-2015 Free Software Foundation, Inc. + Copyright (C) 1992-2018 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -31,7 +31,7 @@ #include "aout/aout64.h" #include "aout/stab_gnu.h" #include "aout/ar.h" -#include "libaout.h" /* BFD a.out internal data structures */ +#include "libaout.h" /* BFD a.out internal data structures */ #define DEFAULT_ARCH bfd_arch_i386 @@ -70,11 +70,11 @@ i386linux_write_object_contents (bfd *abfd) struct external_exec exec_bytes; struct internal_exec *execp = exec_hdr (abfd); - N_SET_MACHTYPE (*execp, M_386); + N_SET_MACHTYPE (execp, M_386); obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; - WRITE_HEADERS(abfd, execp); + WRITE_HEADERS (abfd, execp); return TRUE; } @@ -318,7 +318,7 @@ linux_add_one_symbol (struct bfd_link_info *info, insert = FALSE; - if (! info->relocatable + if (! bfd_link_relocatable (info) && linux_hash_table (info)->dynobj == NULL && strcmp (name, SHARABLE_CONFLICTS) == 0 && (flags & BSF_CONSTRUCTOR) != 0 @@ -413,14 +413,14 @@ linux_tally_symbols (struct linux_link_hash_entry *h, void * data) alloc = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 1); if (p == NULL || alloc == NULL) - (*_bfd_error_handler) (_("Output file requires shared library `%s'\n"), - name); + _bfd_error_handler (_("Output file requires shared library `%s'\n"), + name); else { strcpy (alloc, name); p = strrchr (alloc, '_'); *p++ = '\0'; - (*_bfd_error_handler) + _bfd_error_handler (_("Output file requires shared library `%s.so.%s'\n"), alloc, p); free (alloc); @@ -607,7 +607,7 @@ linux_finish_dynamic_link (bfd *output_bfd, if (f->h->root.root.type != bfd_link_hash_defined && f->h->root.root.type != bfd_link_hash_defweak) { - (*_bfd_error_handler) + _bfd_error_handler (_("Symbol %s not defined for fixups\n"), f->h->root.root.root.string); continue; @@ -657,7 +657,7 @@ linux_finish_dynamic_link (bfd *output_bfd, if (f->h->root.root.type != bfd_link_hash_defined && f->h->root.root.type != bfd_link_hash_defweak) { - (*_bfd_error_handler) + _bfd_error_handler (_("Symbol %s not defined for fixups\n"), f->h->root.root.root.string); continue; @@ -682,7 +682,7 @@ linux_finish_dynamic_link (bfd *output_bfd, if (linux_hash_table (info)->fixup_count != fixups_written) { - (*_bfd_error_handler) (_("Warning: fixup count mismatch\n")); + _bfd_error_handler (_("Warning: fixup count mismatch\n")); while (linux_hash_table (info)->fixup_count > fixups_written) { bfd_put_32 (output_bfd, (bfd_vma) 0, fixup_table);