aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2001-09-29 * section.c (struct sec): Remove kept_section.Alan Modra8-62/+34
(STD_SECTION): Remove kept_section initialisation. (bfd_make_section_anyway): Here too. * ecoff.c (bfd_debug_section): Remove kept_section initialisation. * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section. * elflink.h (elf_link_input_bfd): Set discarded link-once section symbols to zero, and remove all code involved with kept_section and tracking section symbol values. * bfd-in2.h: Regenerate. * configure.in: Bump version number. * configure: Regenerate. * ldlang.c (section_already_linked): Remove assignment to kept_section.
2001-09-29 * elf64-ppc.c (struct ppc_dyn_relocs): New.Alan Modra2-1162/+1406
(IS_ABSOLUTE_RELOC): Define. (struct ppc_link_hash_entry): New. (struct ppc_link_hash_table): New. (ppc_hash_table): Define. (link_hash_newfunc): New function. (ppc64_elf_link_hash_table_create): New function. (create_got_section): New function. (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash pointers to our dynamic sections in hash table. (ppc64_elf_copy_indirect_symbol): New function. (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to dynamic sections. Localise vars. Modify code for refcounts starting from zero. Don't allocate here, or force symbols dynamic. Don't copy all relocs if shared, select ones we need. Add code to track possible copy relocs for non-shared link. (ppc64_elf_gc_mark_hook): Update comment. (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too. (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt code for reference counting garbage collection. Don't create .plt entries for functions that don't comply with ABI naming convention, and don't allocate .plt space here. Use short-cuts to dynamic sections. If possible, keep dynamic relocations instead of using copy relocs. Remove confused comments. (ppc_adjust_dynindx): Delete. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. (allocate_dynrelocs): New function. (readonly_dynrelocs): New function. (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got space here, and call allocate_dynrelocs to allocate space for global .plt, .got and reloc sections. Use short-cuts to dynamic sections. Call readonly_dynrelocs to determine whether we need DT_TEXTREL. Don't generate section symbols here, the generic ELF linker code does it for us. (ppc64_elf_final_link): Call regular ELF backend linker rather than gc variety, since we do our own .got handling. (ppc64_elf_relocate_section): Remove DEBUG code. Make use of dynamic section short-cuts. Localise vars, and delay setting. Handle unknown relocs in main switch statement. Replace ugly complicated tests for unresolvable relocs with a simple direct scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY before allowing an undefined sym in a shared lib. Do R_*_DS tests after main switch, when we've set addend. Do non-addend insn tweaks before main swithc. Ignore input_section->vma when calculating reloc offsets as it's always zero. Rewrite dynamic reloc handling. Consolidate R_*_HA handling. Handle more relocs. (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use of dynamic section short-cuts. Reorganise .plt handling code. Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL. Move expressions out of swap_reloca_out function calls. (ppc64_elf_reloc_type_class): New function. (ppc64_elf_info_to_howto): Move common expression to local var. (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use of dynamic section short-cuts. Don't fiddle with section syms here as the ELF linker does it for us. (elf_backend_can_refcount): Define. (bfd_elf64_bfd_link_hash_table_create): Define. (elf_backend_copy_indirect_symbol): Define. (elf_backend_reloc_type_class): Define. (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
2001-09-29 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.Alan Modra14-223/+199
(struct elf_backend_data): Add can_refcount. * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set got.refcount and plt.refcount from init_refcount. (_bfd_elf_link_hash_table_init): Set up init_refcount. (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount rather than got/plt.offset, and test for <= 0 rather than -1. * elflink.h (size_dynamic_sections): Set init_refcount to -1. * elfxx-target.h (elf_backend_can_refcount): Define. (elfNN_bed): Init can_refcount. * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts. (_bfd_generic_link_hash_newfunc): Likewise. * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts starting from zero. (elf32_hppa_copy_indirect_symbol): Make static to agree with prototype. (elf_backend_can_refcount): Define. * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts starting from zero. (allocate_dynrelocs): Set plt/got.offset rather than *.refcount. (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment. (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars. (elf_backend_can_refcount): Define. (elf_i386_copy_indirect_symbol): Make static to agree with prototype. Formatting fix. * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define. * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts starting from zero. (elf_backend_can_refcount): Define.
2001-09-29 * som.c (som_write_symbol_strings): Cast current_offset inAlan Modra2-1/+6
bfd_seek call to match param type.
2001-09-28 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,Richard Henderson2-8/+13
SEC_MERGE, SEC_STRINGS.
2001-09-28Document changes to som.c revision 1.22.Joel Brobecker1-0/+6
2001-09-28som_write_symbol_strings: Fix incorrect type of current_offset to matchJoel Brobecker1-1/+1
the function definition. Fixes a build failure on HPUX-11.00.
2001-09-28 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.Richard Henderson3-6/+15
* bfd-in2.h: Rebuild.
2001-09-28 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfdAlan Modra2-2/+4
reloc code using x86_64_reloc_map.
2001-09-28 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since weAlan Modra2-89/+98
no longer allocate here. Localise some vars to blocks where they are used. (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay setting of vars until needed. (allocate_dynrelocs): Don't create a .plt entry without a reloc when symbol visibilty makes a function local. (elf32_hppa_finish_dynamic_symbol): Move expressions out of swap_reloca_out function calls. (elf32_hppa_relocate_section): Likewies. Comment typo fix. (elf32_hppa_finish_dynamic_sections): Migrate common code out of switch statement.
2001-09-27 * elf32-i386.c (elf_i386_check_relocs): Update comment since weAlan Modra2-119/+96
no longer allocate here. Localise some vars to blocks where they are used. Remove separate switch stmt for creating .got sec. (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove redundant casts and aborts. Delay setting of vars until needed. (allocate_dynrelocs): Remove redundant casts and aborts. (elf_i386_size_dynamic_sections): Move comment. (elf_i386_finish_dynamic_symbol): Move expressions out of function calls. (elf_i386_relocate_section): Likewise. Comment typo fix. (elf_i386_finish_dynamic_sections): Migrate common code out of switch statement. (elf_backend_* defines): Sort.
2001-09-27 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entryAlan Modra2-29/+39
without a reloc when symbol visibilty makes a function local.
2001-09-27Revert most of previous delta. Do not call bfd_archive_filename on outputNick Clifton2-9/+8
bfd, nor twice in one expression.
2001-09-27Replace bfd_get_filename with bfd_archive_filename in error message.Nick Clifton2-32/+40
Fix detection of conflicting float flags.
2001-09-26 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.Alan Modra3-142/+233
(elf_backend_copy_indirect_symbol): Define. (struct elf_i386_link_hash_entry): Rename "root" to "elf". (struct elf_i386_link_hash_table): Likewise. (link_hash_newfunc): Get rid of unnecessary casts. (elf_i386_link_hash_table_create): Likewise. (elf_i386_check_relocs): Initialise local_got_refcounts to 0. Don't test input section SEC_READONLY here to try to avoid copy relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF. (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY here to properly test whether we need copy relocs. Do so for weak syms too. * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function. (elf_backend_copy_indirect_symbol): Define. (struct elf32_hppa_link_hash_table): Rename "root" to "elf". (stub_hash_newfunc): Get rid of unnecessary casts. (hppa_link_hash_newfunc): Likewise. (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0. Don't test input section SEC_READONLY here to try to avoid copy relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF. (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY here to properly test whether we need copy relocs. Do so for weak syms too.
2001-09-26 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,Alan Modra2-38/+11
VA_OPEN, VA_FIXEDARG, VA_CLOSE. (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
2001-09-25 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slotJakub Jelinek2-2/+7
computation.
2001-09-252001-09-25 H.J. Lu <hjl@gnu.org>H.J. Lu2-10/+14
* bfd-in2.h: Regenerated.
2001-09-25 * elf32-i386.c: Add comment re linker function names and ordering.Alan Modra2-132/+153
(elf_i386_link_hash_newfunc): Rename to link_hash_newfunc. (elf_i386_grok_prstatus): Move before linker functions. (elf_i386_grok_psinfo): Likewise. (elf_i386_fake_sections): Move so that functions are ordered. (elf_i386_reloc_type_class): Likewise. Comment function purpose.
2001-09-25 * elf32-hppa.c: Rename all occurrences of "hplink" to "htab"Alan Modra2-211/+208
throughout file.
2001-09-25 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove allAlan Modra2-361/+292
code handling this option. (LONG_BRANCH_VIA_PLT): Likewise. (RELATIVE_DYNRELOCS): Define as zero. (struct elf32_hppa_dyn_reloc_entry): Add "sec", and "pc_count" fields. Remove "section" field. (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs. (elf32_hppa_check_relocs): Don't allocate space for dynamic relocs here. Instead, record all needed dynamic relocs via dyn_relocs and local_dynrel. Cache pointer to "sreloc" section in elf_section_data. (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. (allocate_plt_and_got_and_discard_relocs): Rename to allocate_dynrelocs. Allocate rather than discarding dyn relocs. (readonly_dynrelocs): New function. (elf32_hppa_size_dynamic_sections): Mark output_bfd unused. Call readonly_dynrelocs to determine need for DT_TEXTREL. Rename "i" to "ibfd". Allocate space for local dyn relocs. (elf32_hppa_relocate_section): Make use of cached sreloc. (elf32_hppa_reloc_type_class): New function. (elf_backend_reloc_type_class): Define.
2001-09-25 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"Alan Modra3-117/+224
and "sreloc" fields. * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and "pc_count" fields. Remove "section" field. (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't allocate space for dynamic relocs here. Instead, record all needed dynamic relocs via dyn_relocs and local_dynrel. Cache pointer to "sreloc" section in elf_section_data. (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. (allocate_plt_and_got_and_discard_relocs): Rename to allocate_dynrelocs. Allocate rather than discarding dyn relocs. (readonly_dynrelocs): New function. (elf_i386_size_dynamic_sections): Call readonly_dynrelocs. Rename "i" to "ibfd". Allocate space for local dyn relocs. (elf_i386_relocate_section): Make use of cached sreloc.
2001-09-24 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entireAlan Modra17-86/+115
reloc rather than just the type. (_bfd_elf_reloc_type_class): Likewise. * elf.c (_bfd_elf_reloc_type_class): Likewise. * elf32-arm.h (elf32_arm_reloc_type_class): Likewise. * elf32-cris.c (elf_cris_reloc_type_class): Likewise. * elf32-i386.c (elf_i386_reloc_type_class): Likewise. * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise. * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise. * elf32-s390.c (elf_s390_reloc_type_class): Likewise. * elf32-sh.c (sh_elf_reloc_type_class): Likewise. * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise. * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise. * elf64-s390.c (elf_s390_reloc_type_class): Likewise. * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise. * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise. * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise. * elflink.h: Formatting fixes. (elf_link_sort_relocs): Make "count" and "size" bfd_size_type. Call bfd_zmalloc rather than calloc. Remove unnecessary cast of o->contents to PTR. Update call to elf_backend_reloc_type_class.
2001-09-22 * elfcode.h (elf_object_p): Allow for no section header at all inAlan Modra2-22/+34
non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
2001-09-21Fix compile time warningsNick Clifton9-19/+49
2001-09-21 * Makefile.am: Run "make dep-am".Alan Modra8-601/+675
* Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. * aoutx.h: Formatting fixes. * merge.c (_bfd_merged_section_offset): Break line at 80 chars. * linker.c: Replace bfd_get_filename with bfd_archive_filename in error message.
2001-09-20 * bfd.c (bfd_archive_filename): New function.Alan Modra50-387/+463
* bfd-in2.h: Regenerate. * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename in error messages where the bfd is an input bfd. * aout-cris.c: Likewise. * coff-arm.c: Likewise. * coff-mcore.c: Likewise. * coff-ppc.c: Likewise. * coff-rs6000.c: Likewise. * coff-sh.c: Likewise. * coff-tic54x.c: Likewise. * coff-tic80.c: Likewise. * coff64-rs6000.c: Likewise. * coffcode.h: Likewise. * coffgen.c: Likewise. * cofflink.c: Likewise. * ecofflink.c: Likewise. * elf-hppa.h: Likewise. * elf.c: Likewise. * elf32-arm.h: Likewise. * elf32-cris.c: Likewise. * elf32-gen.c: Likewise. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf32-i386.c: Likewise. * elf32-m32r.c: Likewise. * elf32-mcore.c: Likewise. * elf32-mips.c: Likewise. * elf32-ppc.c: Likewise. * elf32-s390.c: Likewise. * elf32-sh.c: Likewise. * elf32-sparc.c: Likewise. * elf32-v850.c: Likewise. * elf64-alpha.c: Likewise. * elf64-gen.c: Likewise. * elf64-ppc.c: Likewise. * elf64-s390.c: Likewise. * elf64-sparc.c: Likewise. * elf64-x86-64.c: Likewise. * elflink.h: Likewise. * elfxx-ia64.c: Likewise. * ieee.c: Likewise. * ihex.c: Likewise. * libbfd.c: Likewise. * pdp11.c: Likewise. * pe-mips.c: Likewise. * peicode.h: Likewise. * srec.c: Likewise. * xcofflink.c: Likewise. * elf32-arm.h: Make _bfd_error_handler calls K&R compatible. * elflink.c (_bfd_elf_create_linker_section): Better grammar for error message. * coff-mcore.c (coff_mcore_relocate_section): Internalionalise error message. * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types. Consolidate error messages, and split long messages to two lines.
2001-09-20coordinate info->symbolic and info->allow_shlib_undefinedNick Clifton17-19/+59
2001-09-19Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu21-67/+90
2001-09-18 * bfdint.texi: Replace reference to bfd_read with bfd_bread.Alan Modra2-3/+8
Likewise for bfd_write.
2001-09-18Touches most files in bfd/, so likely will be blamed for everything..Alan Modra183-12305/+13588
o bfd_read and bfd_write lose an unnecessary param and become bfd_bread and bfd_bwrite. o bfd_*alloc now all take a bfd_size_type arg, and will error if size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files or bugs in linker scripts etc. o file_ptr becomes a bfd_signed_vma. Besides matching sizes with various other types involved in handling sections, this should make it easier for bfd to support a 64 bit off_t on 32 bit hosts that provide it. o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*) generally available. They now cast their args to bfd_vma and bfd_byte * as appropriate, which removes a swag of casts from the source. o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and aout-encap.c. o Zillions of formatting and -Wconversion fixes.
2001-09-18Fix typoNick Clifton2-1/+5
2001-09-172001-09-17 H.J. Lu <hjl@gnu.org>H.J. Lu2-5/+17
* dwarf1.c (parse_die): Take a new arg for the end of the section. Return false if die is beyond the section. (parse_functions_in_unit): Pass the end of the section to parse_die (). (_bfd_dwarf1_find_nearest_line): Likewise.
2001-09-14Fix bug emitting R_SPARC_UA32 relocs into shared objectsNick Clifton2-1/+6
2001-09-14Add support for arm-openbsd targetNick Clifton2-1/+5
2001-09-14 /bfd/ChangeLogThiemo Seufer2-7/+20
* config.bfd: Change machine triplets from mips*el*-* to mips*el-*. Add support for mips64. /ChangeLog * config.sub: Change machine triplets from mipsel*-* to mips*el-*. Add support for mips64. /gas/ChangeLog * configure.in: Change machine triplets from mips-*-linux-gnu* to mips*-*-linux*.
2001-09-13* elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.Alexandre Oliva2-0/+5
2001-09-13* elf.c (prep_headers): Get the machine code from the elfAlexandre Oliva1-1/+2
backend data. * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200. * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. * elf-arc.c (arc_elf_final_write_processing): Don't override e_machine, it's now properly set in prep_headers. * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and EM_AVR_OLD. (ELF_MACHINE_ALT1): Define to EM_AVR_OLD. * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V. * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V. * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30. * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R. * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD. * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
2001-09-12* elf.c (prep_headers): Get the machine code from the elfAlexandre Oliva11-120/+56
backend data. * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200. * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. * elf-arc.c (arc_elf_final_write_processing): Don't override e_machine, it's now properly set in prep_headers. * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and EM_AVR_OLD. (ELF_MACHINE_ALT1): Define to EM_AVR_OLD. * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V. * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V. * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30. * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R. * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD. * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850. (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
2001-09-11 * elf64-alpha.c (elf64_alpha_section_flags): New.Richard Henderson2-1/+24
(elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
2001-09-11 * elf64-alpha.c (elf64_alpha_relocate_section): Do notRichard Henderson2-3/+16
apply HINT relocations against dynamic symbols.
2001-09-112001-09-11 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* inker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
2001-09-09 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.Richard Henderson2-438/+7
2001-09-09 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdispRichard Henderson2-8/+35
following a call to a near function.
2001-09-09 * elf64-alpha.c (elf64_alpha_relocate_section): Soft failRichard Henderson2-3/+24
relocation errors. Fail gp-relative relocations against dynamic symbols.
2001-09-08 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULARAlan Modra3-6813/+6833
as well as DEF_DYNAMIC in test for avoided copy relocs. (allocate_plt_and_got_and_discard_relocs): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. (allocate_plt_and_got_and_discard_relocs): Likewise.
2001-09-07 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handlingThiemo Seufer2-1/+6
of R_MIPS_PC16. * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL. (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded PIC, BFD_RELOC_16_PCREL for the rest. (mips_ip): Likewise. (md_pcrel_from): return the right offset for the differently shifted pcrel relocs. (md_apply_fix): Handle BFD_RELOC_16_PCREL. * gas/mips/beq.d: Check branches to external labels. * gas/mips/beq.s: Likewise. * gas/mips/bge.d: Likewise. * gas/mips/bge.s: Likewise. * gas/mips/bgeu.d: Likewise. * gas/mips/bgeu.s: Likewise. * gas/mips/blt.d: Likewise. * gas/mips/blt.s: Likewise. * gas/mips/bltu.d: Likewise. * gas/mips/bltu.s: Likewise. * gas/mips/elempic.d: Switch from R_MIPS_GNU_REL16_S2 to R_MIPS_PC16. * gas/mips/empic.d: Likewise. * gas/mips/empic.s: Likewise. * gas/mips/telempic.d: Likewise. * gas/mips/tempic.d: Likewise.
2001-09-06 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTOThiemo Seufer2-6953/+6908
definitions. (mips_elf64_howto_table_rel): Likewise.
2001-09-06Fix import symbols for AIX.Tom Rix5-14/+48
2001-09-05 * elf64-alpha.c (SKIP_HOWTO): New.Richard Henderson5-237/+74
(elf64_alpha_howto_table): Use it to remove dead ECOFF relocs. Fix sizes of 16-bit mem format relocs. (elf64_alpha_reloc_map): Update to match. (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate. (elf64_alpha_relax_without_lituse): Likewise. (elf64_alpha_check_relocs): Handle GPREL16. (elf64_alpha_relocate_section): Likewise. * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove. (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New. * bfd-in2.h, libbfd.h: Rebuild.