aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
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.
2004-02-09 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.Daniel Jacobowitz6-0/+13
* emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise. * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise. * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise. * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2004-02-09Add support for relaxing the 32bit ldc/stc instructions.Nick Clifton5-0/+177
2004-02-05Fix typo in previous deltaNick Clifton2-1/+5
2004-02-04Fix thinko checking for dlls in archives.Nick Clifton2-1/+5
2004-01-28 * genscripts.sh: Fix typo.Alan Modra2-6/+8
2004-01-28 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.Alan Modra2-4/+18
2004-01-24 * emulparams/elf64_ia64.sh: Put .rela.opd intoJakub Jelinek2-1/+6
OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2004-01-23 * ld-arm/arm-app-abs32.s, ld-arm/arm-app-abs32.r,Daniel Jacobowitz5-0/+62
ld-arm/arm-app-abs32.d: New files. * ld-arm/arm-elf.exp: Add arm-app-abs32 testcase.
2004-01-20 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.Danny Smith3-4/+20
* ld.texinfo (--omagic): Note that writable text section does not conform to published PE-COFF specs. (--enable-auto-import): Likewise.
2004-01-18 * ld-i386/tlsbin.dd: Adjust for changed sib printing.Alan Modra2-2/+6
2004-01-15 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.Alan Modra2-0/+5
2004-01-13 * ld-arm/arm-elf.exp: Add arm-static-app test.Daniel Jacobowitz5-0/+56
* ld-arm/arm-static-app.s, ld-arm/arm-static-app.d, ld-arm/arm-static-app.r: New files.
2004-01-13* ldlang.c (lang_get_regions): Add extra parameter 'have_vma' which if true willNick Clifton4-85/+135
prevent the LMA region being used as a replacement for a default VMA region. (lang_leave_output_section_statement): Pass extra parameter. (lang_leave_overlay): Likewise. * ld.texinfo (Output Section LMA): Document that the LMA region can be set to the VMA region if no VMA has been set. * ldlang.h (struct lang_output_section_phdr_list): Create a typedef for this type. Minor formatting fixes.
2004-01-13If dot is advanced, then assume that the section should be allocated.Nick Clifton2-0/+11
2004-01-12Add support for relaxation of bit manipulation instructions.Nick Clifton5-1/+187
2004-01-12 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOADAlan Modra2-4/+8
sections. Do ignore SEC_NEVER_LOAD sections. (lang_size_sections_1): Remove test made redundant with the above.