aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
2004-04-21 * NEWS: Mention change in DEFINED semantics.Hans-Peter Nilsson2-0/+7
2004-04-21 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.Eric Botcazou2-1/+9
(.data): Add KEEP for .gnu.linkonce.d.*personality*. (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2004-04-21 * ld.texinfo (Simple Example): Add missing punctuation.Ben Elliston2-1/+5
2004-04-21[ gas/ChangeLog ]Chris Demetriou2-0/+7
2004-04-20 Chris Demetriou <cgd@broadcom.com> * NEWS: Note that MIPS -membedded-pic option is deprecated. [ ld/ChangeLog ] 2004-04-20 Chris Demetriou <cgd@broadcom.com> * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2004-04-202004-04-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu6-1/+69
* ld-elfweak/elfweak.exp: Add an undefined weak size change test. * ld-elfweak/size.dat: New file. * ld-elfweak/size_bar.c: Likewise. * ld-elfweak/size_foo.c: Likewise. * ld-elfweak/size_main.c: Likewise.
2004-04-20Add support for a .secrel32 x86 reloc to allow DWARF" debug information to usedNick Clifton5-0/+157
with COFF based x86 ports.
2004-04-19bfd/Jakub Jelinek3-1/+24
* elf32-sparc.c (elf32_sparc_relocate_section): Handle relocs against hidden/protected undefweak symbols properly. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. gas/testsuite/ * gas/cfi/cfi-sparc64-1.d: Update. ld/testsuite/ * ld-elfvsb/elfvsb.exp: XFAIL some tests on sparc64. * ld-shared/shared.exp: Likewise.
2004-04-19 * ldlang.c (lang_do_assignments_1): Handle .tbss output sectionJakub Jelinek2-3/+10
specially.
2004-04-17 * scriptempl/pe.sc: Put numbered .ctors.* after .ctorsDanny Smith2-2/+7
with default priority. Likewise for dtors.
2004-04-16Restore 2002 ChangeLog history.Brian Ford1-1/+1936
2004-04-15gas/H.J. Lu3-0/+7
2004-04-14 H.J. Lu <hongjiu.lu@intel.com> * config/tc-generic.c: Add some comments. ld/testsuite/ 2004-04-14 H.J. Lu <hongjiu.lu@intel.com> * ld-scripts/assert.s: Add a newline. * ld-scripts/data.s: Likewise.
2004-04-11 /bfd/ChangeLogThiemo Seufer3-5/+5
* config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets. * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3* targets amd aout_mips_big_vec, aout_mips_little_vec target vectors. * configure: Regenerate. /gas/ChangeLog * Makefile.am: Remove mips from aout targets. * Makefile.in: Regenerate. * configure.in: Remove mips-dec-bsd* target. * configure: Regenerate. /ld/ChangeLog * configure.host: Remove mips*-dec-bsd* target. * configure.tgt: Likewise.
2004-04-08 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.Richard Sandiford7-4/+62
* emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise. * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise. * emultempl/irix.em: New file. * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update dependencies. * Makefile.in: Regenerate.
2004-04-08 PR 47.Alan Modra2-3/+8
* ld-cdtest/cdtest.exp: Remove -fgnu-linker.
2004-04-08 * ld-scripts/align.exp: Don't run on aix.Alan Modra23-58/+104
* ld-scripts/assert.s: Remove comment. * ld-scripts/data.s: Likewise. * ld-scripts/data.t: Set start address to allow for aout headers. Make first LONG pc-relative. * ld-scripts/data.d: Update. * ld-scripts/defined2.d: Allow other random syms. * ld-scripts/defined3.d: Likewise. * ld-scripts/provide-1.s: Pad section. * ld-scripts/provide-1.t: Set .data address and align. * ld-scripts/provide-1.d: Update. * ld-scripts/provide-2.s: Pad section. * ld-scripts/provide-2.d: Allow random trailing syms. * ld-scripts/provide-3.s: Pad section. * ld-scripts/provide-3.d: Fix typos. * ld-scripts/provide.exp: Don't run on aix. * ld-scripts/size-1.s: Simplify test. * ld-scripts/size-1.t: Rewrite. * ld-scripts/size-1.d: Update. * ld-scripts/size-2.s: Simplify. * ld-scripts/size-2.t: Set start address. Set exe flag on image. * ld-scripts/size-2.d: Update. * ld-scripts/size.exp: Don't run on aix. Run size-2 on all elf targets except mips.
2004-04-01 * bfd/bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.Paul Brook4-2/+27
* bfd/elf32-arm.h (struct elf32_elf_section_map): New. (struct _arm_elf_section_data): New. (elf32_arm_section_data): Define. (struct elf32_arm_link_hash_table): Add byteswap_code. (elf32_arm_link_hash_table_create): Initialize byteswap_code. (bfd_elf32_arm_process_before_allocation): Add byteswap_code. (elf32_arm_post_process_headers): Set EF_ARM_BE8. (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook, elf32_arm_compare_mapping, elf32_arm_write_section): New functions. (bfd_elf32_new_section_hook, elf_backend_write_section, elf_backend_link_output_symbol_hook): Define. * ld/emultempl/armelf.em (byteswap_code): Add. (arm_elf_before_allocation): Pass extra parameter. (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8. (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8. * ld/emultempl/armelf_oabi.em: Pass extra parameter. * ld/ld.texinfo: Document --be8.
2004-03-30 Remove long-obsolete MPW support.Stan Shebs8-245/+9
* mpw-config.in, mpw-make.sed, mac-ld.r: Remove files. * Makefile.am (mpw): Remove file-presynthesizing actions. * Makefile.in: Likewise. * ldfile.c (slash): Remove MPW case. * ldlex.l [MPW]: Remove unused definition.
2004-03-30Add (linker) support for CR16C processorNick Clifton7-0/+80
2004-03-30Updated Swedish translationNick Clifton2-406/+500
2004-03-27* ld-frv/fdpic*.d: Adjust to compensate for page size change.Alexandre Oliva20-622/+626
2004-03-27 * emultempl/elf32.em: Update new bfd_elf_discard_info name.Alan Modra5-6/+13
* emultempl/hppaelf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/sh64elf.em: Likewise.
2004-03-26 * ld-powerpc/tlsexe.r: Update for changed sym type.Alan Modra3-4/+9
* ld-powerpc/tlsexetoc.r: Likewise.
2004-03-25bfd/Alan Modra2-1/+6
* elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed and chained shared libs only if dynsym. Clear dynsym on forced-local. * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare. (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete. (_bfd_elf_add_dt_needed_tag): Declare. (_bfd_elf_sort_symbol): Declare. (_bfd_elf_finalize_dynstr): Declare. (RELOC_FOR_GLOBAL_SYM): Formatting. * elfcode.h (elf_add_dynamic_entry): Delete. * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding elflink.h function converted to use elf_size_info. (_bfd_elf_add_dt_needed_tag): Likewise. (_bfd_elf_sort_symbol): Likewise. (_bfd_elf_finalize_dynstr): Likewise. (compute_bucket_count): Likewise. (bfd_elf_size_dynamic_sections): Likewise. Check result of _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref. (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from.. * elflink.h: ..here. (sort_symbol, add_dt_needed_tag): Delete. (elf_add_dynamic_entry, elf_finalize_dynstr): Delete. (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete. Update all users. * elf32-arm.h (add_dynamic_entry): Update. Remove casts. * elf32-cris.c (add_dynamic_entry): Likewise. * elf32-hppa.c (add_dynamic_entry): Likewise. * elf32-i370.c (add_dynamic_entry): Likewise. * elf32-i386.c (add_dynamic_entry): Likewise. * elf32-m32r.c (add_dynamic_entry): Likewise. * elf32-m68k.c (add_dynamic_entry): Likewise. * elf32-ppc.c (add_dynamic_entry): Likewise. * elf32-s390.c (add_dynamic_entry): Likewise. * elf32-sh.c (add_dynamic_entry): Likewise. * elf32-sparc.c (add_dynamic_entry): Likewise. * elf32-vax.c (add_dynamic_entry): Likewise. * elf32-xtensa.c (add_dynamic_entry): Likewise. * elf64-alpha.c (add_dynamic_entry): Likewise. * elf64-hppa.c (add_dynamic_entry): Likewise. * elf64-ppc.c (add_dynamic_entry): Likewise. * elf64-s390.c (add_dynamic_entry): Likewise. * elf64-sparc.c (add_dynamic_entry): Likewise. * elf64-x86-64.c (add_dynamic_entry): Likewise. * elfxx-ia64.c (add_dynamic_entry): Likewise. * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise. * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise. * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise. * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise. ld/ * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update size_dynamic_sections call.
2004-03-22include/Alan Modra2-2/+10
PR 51. * bfdlink.h (struct bfd_link_info): Add wrap_char. bfd/ PR 51. * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char. ld/ PR 51. * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set link_info.wrap_char.
2004-03-22 * ld-cris/dsofnf.s, ld-cris/dsofnf2.s, ld-cris/gotplt1.d,Hans-Peter Nilsson6-0/+140
ld-cris/gotplt2.d, ld-cris/gotplt3.d: New tests.
2004-03-20bfd/H.J. Lu2-18/+5
2004-03-20 H.J. Lu <hongjiu.lu@intel.com> * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if unresolved symbols in objects aren't allowed. * elf-hppa.h (elf_hppa_relocate_section): Properly handle unresolved symbols. (elf_hppa_remark_useless_dynamic_symbols): Likewise. (elf_hppa_unmark_useless_dynamic_symbols): * elf32-frv.c (elf32_frv_relocate_section): Likewise. * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. (elf32_hppa_relocate_section): Likewise. * elf32-i370.c (i370_elf_relocate_section): Likewise. * elf32-m32r.c (m32r_elf_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf64-sh64.c (sh_elf64_relocate_section): Likewise. * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. * elf-m10200.c (mn10200_elf_relocate_section): Use RELOC_FOR_GLOBAL_SYMBOL. * elf32-avr.c (elf32_avr_relocate_section): Likewise. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. * elf32-fr30.c (fr30_elf_relocate_section): Likewise. * elf32-h8300.c (elf32_h8_relocate_section): Likewise. * elf32-i860.c (elf32_i860_relocate_section): Likewise. * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise. * elf32-mcore.c (mcore_elf_relocate_section): Likewise. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. * elf32-v850.c (v850_elf_relocate_section): Likewise. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. * elf64-mmix.c (mmix_elf_relocate_section): Likewise. include/ 2004-03-20 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (bfd_link_info): Correct comments for the unresolved_syms_in_objects field. ld/ 2004-03-20 H.J. Lu <hongjiu.lu@intel.com> * lexsup.c (parse_args): Don't set unresolved_syms_in_objects or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2004-03-20* emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.Alexandre Oliva2-1/+5
2004-03-192004-03-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu12-0/+51
* ld-elfvers/vers.exp: Add new tests for versioned weak definition. * ld-elfvers/vers28a.c: New file. * ld-elfvers/vers28a.dsym: Likewise. * ld-elfvers/vers28a.ver: Likewise. * ld-elfvers/vers28b.c: Likewise. * ld-elfvers/vers28b.dsym: Likewise. * ld-elfvers/vers28b.map: Likewise. * ld-elfvers/vers28b.ver: Likewise. * ld-elfvers/vers28c.c: Likewise. * ld-elfvers/vers28c.dsym: Likewise. * ld-elfvers/vers28c.ver: Likewise.
2004-03-19 * ld-scripts/provide-2.d: Ignore random symbols.Alan Modra2-0/+5
2004-03-19 * config.in: Regenerate.Alan Modra3-390/+490
* po/ld.pot: Regenerate.
2004-03-18bfd/Alan Modra8-32/+87
* elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add dyn_lib_class field. Rearrange for better packing. (elf_dt_soname): Delete. (elf_dyn_lib_class): Define. * elf.c (bfd_elf_set_dt_needed_name): Update comment. (bfd_elf_set_dt_needed_soname): Delete. (bfd_elf_set_dyn_lib_class): New function. * elflink.h (add_dt_needed_tag): New function. Split out from.. (elf_link_add_object_symbols): ..here. Rename "name" to "soname". Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback initialization of soname. (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of elf_dt_soname. * bfd-in.h (enum dynamic_lib_link_class): New. (bfd_elf_set_dt_needed_soname): Delete. (bfd_elf_set_dyn_lib_class): Declare. * bfd-in2.h: Regenerate. ld/ * ld.texinfo: Add --as-needed doco. * ldmain.c (as_needed): New global var. * ldmain.h (as_needed): Declare. * lexsup.c (option_values): Add OPTION_AS_NEEDED and OPTION_NO_AS_NEEDED. (ld_options): Likewise. (parse_args): Handle them. * ldlang.h (lang_input_statement_type): Add as_needed field. * ldlang.c (new_afile): Set p->as_needed. * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function. (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class. (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry. * ldlang.c (open_input_bfds): Remove useless cast. (lang_do_assignments_1): Likewise. (lang_for_each_input_section): Delete.
2004-03-17Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.Alan Modra2-2/+7
2004-03-16opcodes/Alan Modra10-341/+353
* ppc-dis.c (print_insn_powerpc): Don't print tabs. Handle PPC_OPERANDS_GPR_0. * ppc-opc.c (RA0): Define. (RAQ, RAL, RAM, RAS, RSQ, RTQ, RSO): Use PPC_OPERAND_GPR_0. (RAOPT): Rename from RAO. Update all uses. (powerpc_opcodes): Use RA0 as appropriate. Add "lsdx", "lsdi", "stsdx", "stsdi", "lmd" and "stmd" insns. include/opcode/ * ppc.h (PPC_OPERAND_GPR_0): Define. Bump other operand defines. gas/testsuite/ Update gas/ppc/. ld/testsuite/ Update ld-powerpc/.
2004-03-08Honour PRIVATE keywordNick Clifton2-3/+12
2004-03-05 * ld-scripts/size-1.d: Add bigendian regexps.Nathan Sidwell3-11/+15
* ld-scripts/size-2.d: Set --wide for readelf.
2004-03-05 * elf.c (map_sections_to_segments): Ignore .tbss sections forNathan Sidwell10-11/+143
layout purposes. * ldlang.c (lang_add_section): Don't force SEC_LOAD on SEC_THREAD_LOCAL. (IGNORE_SECTION): Ignore .tbss sections too. (lang_size_sections_1): .tbss sections do not advance dot. * ld-scripts/size.exp: New. * ld-scripts/size-[12].{d,s,t}: New.
2004-03-01* ld.texinfo (Options): Fix example for --wrap.Andreas Schwab2-2/+6
2004-03-01Add fr450 support.Richard Sandiford6-0/+22
2004-02-25 * pe-dll.c (fill_edata): Check that exported_symbol_sections isDanny Smith2-2/+7
not NULL.
2004-02-24* ld-frv/fdpic-pie-2.d: Adjust for decay of FUNCDESC relocs thatAlexandre Oliva12-94/+244
bind locally. * ld-frv/fdpic-pie-8.d: Likewise. * ld-frv/fdpic-shared-4.d: Likewise. * ld-frv/fdpic-pie-6-fail.d: Renamed from... * ld-frv/fdpic-pie-6.d: New test. * ld-frv/fdpic-shared-6-fail.d: Renamed from... * ld-frv/fdpic-shared-6.d: New test. * ld-frv/fdpic6.ldv: New. * ld-frv/fdpic-static-6.d: Adjust test name. * ld-frv/fdpic-pie-8-fail.d: Removed. * ld-frv/fdpic.exp: Run new tests.
2004-02-23 * ldlang.c (lang_check): Use %P, not %E, in error message.Ian Lance Taylor2-1/+5
2004-02-23 * ldlang.h (struct lang_output_section_state): Change processedNathan Sidwell15-61/+153
field's type. * ldexp.c (check, invalid): Remove. (fold_name): Move valid_p assignments. Create undefined symbol when needed. Directly exampine section's processd flag. * ldlang.c (lang_output_section_statement_lookup): Adjust processed field init. (lang_size_sections_1): Allow LOADADDR when determining section's VMA. Adjust error message. Fold data statement's expr. (lang_size_sections): Correctly increment lang_statement_iteration. * ld-scripts/provide.exp: New. * ld-scripts/provide-{1,2,3}.{s,t,d}.exp: New. * ldexp.c (fold_tree): Follow indirect symbols.
2004-02-23 * ld-scripts/data.t: Set ".other" address so location doesn'tAlan Modra3-2/+8
depend on target alignment. * ld-scripts/data.d: Update.
2004-02-20 * ldgram.y (exp): Add two operand ALIGN.Nathan Sidwell8-9/+74
* ldexp.c (fold_binary): Add ALIGN_K case. * ld.texinfo (ALIGN): Document two operand version. * ld-scripts/align.{s,t,exp}: New.
2004-02-19 * ldlang.c (map_input_to_output_sections): Initialize sectionsNathan Sidwell7-2/+58
mentioned in a data statement expression. (lang_do_assignments_1): Add data statement's expression's section's vma. * ld-scripts/data.{s,t,d,exp}: New.
2004-02-18 * ldgram.y (statement_anywhere): Add assert rule.Nathan Sidwell7-0/+53
* ldlang.c (exp_init_os): Add assert case. * testsuite/ld-scripts/assert.{s,t,exp}: New.
2004-02-17bfd/Richard Sandiford5-146/+158
* elfxx-mips.c (mips_elf_calculate_relocation): Use _bfd_elf_symbol_refs_local_p to decide whether to decay a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend. (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE relocs if the symbol wasn't defined by a regular object file. Don't check the symbol's dynindx. ld/testsuite/ * ld-mips/elf/elf-rel-xgot-{n32,n64-linux}.d: Update after 2004-02-02 changes to the way large constants are added. * ld-mips/elf/elf-rel-got-{n32,n64-linux}.d: Likewise. Adjust order of GOT entries after today's change to the handling of GOT_PAGE relocations.
2004-02-15Use bfd_cache_close, instead of accessing bfd->iostream directly.Andrew Cagney2-2/+6
2004-02-14 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): DiscardRichard Sandiford2-25/+8
.MIPS.content* and .MIPS.events* sections.
2004-02-09 * emulparams/armelf.sh, emulparams/armelf_linux.sh: MoveDaniel Jacobowitz3-2/+8
.note.gnu.arm.ident to after allocated sections. Mark its address as 0.