aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
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.
2004-01-092004-01-09 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+10
* ld-selective/selective.exp: Skip ia64-*-*.
2004-01-09 * ld-arm/arm-lib.d, ld-arm/arm-lib.r: Update for R_ARM_PLT32Daniel Jacobowitz3-2/+18
changes.
2004-01-09 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cachedAlan Modra2-0/+8
program_header_size.
2004-01-06 * ld-arm/arm-app.d, ld-arm/arm-app.r, ld-arm/arm-app.s,Daniel Jacobowitz11-0/+222
ld-arm/arm-lib.d, ld-arm/arm-lib.r, ld-arm/arm-lib.s, ld-arm/arm-lib-plt32.d, ld-arm/arm-lib-plt32.r, ld-arm/arm-lib-plt32.s, ld-arm/arm-elf.exp: New files.
2004-01-062003-11-28 Alexandre Oliva <aoliva@redhat.com>Alexandre Oliva6-1/+53
* emulparams/elf32frvfd.sh (EMBEDDED): Clear. 2003-11-05 Alexandre Oliva <aoliva@redhat.com> * emulparams/elf32frvfd.sh (STACK_ADDR): Unset. (MAXPAGESIZE): Set to 64Kb. (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and __ROFIXUP_END__. Don't map .rofixup.got any more. * emulparams/elf32frv.sh (NOP): Set. 2003-10-31 Alexandre Oliva <aoliva@redhat.com> * configure.tgt: Add frv-*-*linux*. 2003-09-30 Alexandre Oliva <aoliva@redhat.com> * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o. (eelf32frvfd.c): New. * configure.tgt <frv-*-*>: Added it to targ_extra_emuls. * emulparams/elf32frv.sh: Reverted previous two patches. * emulparams/elf32frvfd.sh: New. * Makefile.in: Rebuilt. 2003-09-18 Alexandre Oliva <aoliva@redhat.com> * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added .rofixup.got to .rofixup. 2003-09-15 Alexandre Oliva <aoliva@redhat.com> * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B. (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2004-01-06* ld-frv: Update .d files with correct addresses displayed forAlexandre Oliva40-0/+2090
dynamic relocations. 2003-12-02 Alexandre Oliva <aoliva@redhat.com> * ld-frv/fdpic1.s (.D0): Move to separate data section. 2003-11-28 Alexandre Oliva <aoliva@redhat.com> * ld-frv/fdpic-static-1.d, ld-frv/fdpic-static-2.d, * ld-frv/fdpic-static-7.d, ld-frv/fdpic-static-8.d: Update to reflect EMBEDDED= change in linker script. 2003-11-27 Alexandre Oliva <aoliva@redhat.com> * ld-frv: Update .d files to reflect changes in the page size, the addition of a stack segment, the use of a NULL function descriptor for weakundef functions and the change in the lazy funcdesc_value in-place addend value. 2003-11-05 Alexandre Oliva <aoliva@redhat.com> * lib/ld-lib.exp (is_elf_format): Match frv-uclinux. 2003-10-06 Alexandre Oliva <aoliva@redhat.com> * ld-frv/fdpic-static-1.d, ld-frv/fdpic-static-2.d, ld-frv/fdpic-static-7.d, ld-frv/fdpic-static-8.d: Addresses are now _gp-based, not .rofixup-based. * ld-frv/fdpic-static-6.d: Likewise. Match warning about relocation to different section. 2003-09-30 Alexandre Oliva <aoliva@redhat.com> * ld-frv/fdpic.exp: Add -melf32frvfd to LDFLAGS. 2003-09-19 Alexandre Oliva <aoliva@redhat.com> * ld-frv/fdpic7.s, ld-frv/fdpic-static-7.d, ld-frv/fdpic-pie-7.d, ld-frv/fdpic-shared-7.d: New. * ld-frv/fdpic8.s, ld-frv/fdpic-static-8.d, ld-frv/fdpic-pie-8.d, ld-frv/fdpic-shared-8.d: New. * ld-frv/fdpic-pie-8-fail.d, ld-frv/fdpic-shared-8-fail.d: New. * ld-frv/fdpic.exp: Run them. * ld-frv/fdpic8.ldv, ld-frv/fdpic8min.ldv: New. 2003-09-18 Alexandre Oliva <aoliva@redhat.com> * ld-frv/fdpic5.s, ld-frv/fdpic-static-5.d, ld-frv/fdpic-pie-5.d, ld-frv/fdpic-shared-5.d: New. * ld-frv/fdpic6.s, ld-frv/fdpic-static-6.d, ld-frv/fdpic-pie-6.d, ld-frv/fdpic-shared-6.d: New. * ld-frv/fdpic.exp: Run them. * ld-frv/fdpic*.d: Add -mfdpic to assembler flags. Updated. * ld-frv/fdpic2min.ldv: New, used by fdpic-shared-2.d. * ld-frv/fdpic-shared-2-fail.d: New. * ld-frv/fdpic.exp: Run it. * ld-frv/fdpic4.s, ld-frv/fdpic-shared-4.d: New. * ld-frv/fdpic.exp: Add new test. * ld-frv/fdpic-pie-2.d: Remove unnecessary function descriptors. * ld-frv/fdpic-shared-local-2.d, ld-frv/fdpic2.ldv: New. * ld-frv/fdpic3.s, ld-frv/fdpic-shared-3.d: New. * ld-frv/fdpic.exp: Add new tests. * ld-frv/fdpic.exp, ld-frv/fdpic1.s, ld-frv/fdpic2.s, * ld-frv/fdpic-static-1.d, ld-frv/fdpic-static-2.d, * ld-frv/fdpic-pie-1.d, ld-frv/fdpic-pie-2.d, * ld-frv/fdpic-shared-1.d, ld-frv/fdpic-shared-2.d: Renamed from ucpic. 2003-09-15 Alexandre Oliva <aoliva@redhat.com> * ld-frv/ucpic.exp, ld-frv/ucpic1.s, ld-frv/ucpic2.s: New. * ld-frv/ucpic-static-1.d, ld-frv/ucpic-static-2.d: New. * ld-frv/ucpic-pie-1.d, ld-frv/ucpic-pie-2.d: New. * ld-frv/ucpic-shared-1.d, ld-frv/ucpic-shared-2.d: New.
2004-01-05 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.Jakub Jelinek3-0/+7
* emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2004-01-03typo fixAlan Modra1-4/+4
2004-01-03 * ldexp.c (align_n): Make static.Alan Modra10-85/+115
* ldexp.h (align_n): Delete declaration. * ldlang.h (lang_enter_output_section_statement): Remove block_value param. * ldlang.c (lang_enter_output_section_statement): Likewise. (TO_ADDR, TO_SIZE): Define. (opb): New var. (init_opb): New function. (print_input_section): Call init_opb and use TO_ADDR. (print_data_statement, print_reloc_statement): Likewise. (print_padding_statement): Likewise. (size_input_section): Use TO_SIZE and TO_ADDR, and global opb. (lang_check_section_addresses): Likewise. (lang_size_sections_1): Likewise. (lang_do_assignments_1): Likewise. (lang_set_startof): Likewise. (lang_one_common): Likewise. Combine power_of_two and opb alignment. (lang_process): Call init_opb. (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb. (lang_enter_overlay_section): Adjust lang_enter_output_section_statement call. * ldgram.y: Likewise. * mri.c (mri_draw_tree): Likewise. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise. * emultempl/mmo.em (mmo_place_orphan): Likewise. * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2004-01-03 * ldfile.c (ldfile_set_output_arch): Add defarch param.Alan Modra18-109/+74
* ldfile.h (ldfile_set_output_arch): Ditto. * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use ldfile_set_output_arch. * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto. * ldgram.y: Adjust ldfile_set_output_arch call. * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/gld960c.em (gld960_set_output_arch): Ditto. * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2004-01-02Add m68k-uclinux targetNick Clifton2-0/+4
2004-01-02Split ChangeLog files.Alan Modra5-10309/+8406
2004-01-02 * ld-selective/sel-dump.exp: Use is_elf_format, xfail assorted targets.Alan Modra3-44/+16
* ld-selective/selective.exp: Likewise.
2003-12-30 * ld-srec/srec.exp (run_srec_test): Remove -fgnu-linker, since GCCMark Mitchell2-1/+6
3.4 does not support it.
2003-12-19Add support for m32r-linux target, including a RELA ABI and PIC.Nick Clifton8-4/+62
2003-12-18When scanning MS import libraries allow for the possible presence of staticNick Clifton2-6/+51
objects.
2003-12-18 * ld-mips-elf/reloc-1[ab].s: New source files.Richard Sandiford16-0/+1807
* ld-mips-elf/reloc-1-{n32,n64,rel}.d: New tests. * ld-mips-elf/reloc-2[ab].s: New source files. * ld-mips-elf/reloc-2.{d,ld}: New test. * ld-mips-elf/reloc-3[ab].s: New source files. * ld-mips-elf/reloc-3-{r,srec}.d: New tests. * ld-mips-elf/mips-elf.exp: Run them.
2003-12-16Fix typo.Michael Snyder1-1/+1
2003-12-082003-12-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+6
* ldlang.c (lang_vers_match): Pass "DMGL_PARAMS | DMGL_ANSI" to cplus_demangle.
2003-12-07 * ldemul.c: Convert to ISO-C.Kazu Hirata3-66/+42
* ldver.c: Likewise.
2003-12-07 * ld-mips-elf/elf-rel-xgot-n32.d: Fix offset for "lw $5,dl1+34($5)".Richard Sandiford3-2/+7
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
2003-12-07 * lexsup.c (is_num): Remove.Kazu Hirata2-23/+4