aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
2002-11-07* emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.Alexandre Oliva3-0/+9
* emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
2002-11-06 * ld-sh/rd-sh.exp: Set asflags_save always.Kaz Kojima2-2/+7
2002-11-06Adds support for fastcall symbols as used on Microsoft Windows platformsNick Clifton8-241/+371
(i386)
2002-11-04 * ld-sh/rd-sh.exp: Add -isa=SHcompact to ASFLAGS for SH-5.Kaz Kojima6-6/+23
* ld-sh/tlsbin-1.d: Handle GOT_BIAS appropriately for SH-5. * ld-sh/tlspic-1.d: Likewise. * ld-sh/tlspic-2.d: Likewise. * ld-sh/tlsbin-2.d: Likewise. Make it robust for the symbols defined by the linker scripts.
2002-10-30 * emultempl/aix.em: Use include <> for generated headers.Daniel Jacobowitz16-15/+34
* emultempl/beos.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/pe.em: Likewise. * ldctor.c: Likewise. * ldexp.c: Likewise. * ldfile.c: Likewise. * ldlang.c: Likewise. * ldlex.c: Likewise. * ldlex.l: Likewise. * ldmain.c: Likewise. * ldmisc.c: Likewise. * ldwrite.c: Likewise. * lexsup.c: Likewise. * mri.c: Likewise. * pe-dll.c: Likewise.
2002-10-23 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*Jakub Jelinek2-0/+6
sections into .rel{,a}.dyn.
2002-10-23Add new command line option "--no-omagic" which undoes the effects of -N.Nick Clifton4-2/+30
2002-10-23(__RUNTIME_PSEUDO_RELOC_LIST__, __RUNTIME_PSEUDO_RELOC_LIST_END__): AddNick Clifton2-4/+9
only when relocating.
2002-10-22* emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according toAlexandre Oliva6-14/+38
emulation name. Set LIB_PATH only for native tools, and search the ABI-specific versions of NATIVE_LIB_DIRS before the .../lib variants, not instead of them. Mostly copied from... * emulparams/elf32ppc.sh: ... here. Fixed typo. * emulparams/elf64bmip-defs.sh: Backed out. * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again. * emulparams/elf64btsmip.sh: Likewise. (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR, TEXT_DYNAMIC): Removed.
2002-10-17* emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.Alexandre Oliva7-28/+52
(GENERATE_SHLIB_SCRIPT): Set to yes. (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to... * emulparams/elf32bmipn32.sh: here. (GENERATE_SHLIB_SCRIPT): Deleted as redundant. * emulparams/elf32btsmipn32.sh: Delete redundant unsets. * emulparams/elf64bmip-defs.sh: New file. Extend elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH. * emulparams/elf64bmip.sh: Bring in definitions from elf64bmip-defs.sh. (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant settings. (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh. * emulparams/elf64btsmip.sh: Bring in definitions from elf64bmip-defs.sh. (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant. (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
2002-10-16 * config.bfd (s390-*-linux*): Add targ64_selvecs.Jakub Jelinek5-43/+88
(s390x-*-linux*): Add targ_selvecs. * config.table: Use mh-s390pic for s390x too. * configure.tgt (s390x-*-linux*): Add elf_s390 emulation. (s390-*-linux*): Add elf64_s390 emulation if want64. * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22 genscript.sh changes. * emulparams/elf_x86_64.sh (LIB_PATH): Likewise. * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
2002-10-15 * ldlang.c (load_symbols): Revert last change.Alan Modra2-3/+5
2002-10-14 * ld-m68hc11/m68hc11.exp: Specific tests for 68HC11/68HC12.Stephane Carrez12-0/+665
* ld-m68hc11/adj-jump.d: New test for linker relaxation. * ld-m68hc11/adj-jump.s: Likewise. * ld-m68hc11/adj-brset.s: Likewise. * ld-m68hc11/adj-brset.d: Likewise. * ld-m68hc11/relax-direct.s: Likewise. * ld-m68hc11/relax-direct.d: Likewise. * ld-m68hc11/relax-group.s: Likewise. * ld-m68hc11/relax-group.d: Likewise. * ld-m68hc11/bug-1403.d: Likewise. * ld-m68hc11/bug-1403.s: Likewise.
2002-10-14ld-sh/ld-r-1.d: Disable for sh64*-*-linux*.Stephen Clarke7-17/+89
* ld-sh/sh64/sh64.exp: Likewise. * ld-sh/sh.exp: Disable relaxing tests for sh64*-*-linux*. * ld-sh/sh64/abi32.sd: Adjust expected output to include sh64*-*-linux* formats too. * ld-sh/sh64/relax.exp: Add emul32 variable to hold target emulation, and set it appropriately for sh*-*-linux*. * ld-sh/sh64/relfail.exp: Add variables to hold target emulation, output format, start symbol, and whether target supports 64-bit ABI. Set appropriately for sh*-*-linux*.
2002-10-14 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols whenAlan Modra2-18/+27
just_syms_flag. (lang_reasonable_defaults): Don't compare against false. (size_input_section): Likewise. (lang_size_sections_1): Likewise. (lang_do_assignments): Likewise. (lang_add_output): Likewise.
2002-10-14 * Makefile.am: Run "make dep-am".Alan Modra4-7/+14
* Makefile.in: Regenerate. * ldver.c: #include "bfdver.h".
2002-10-13 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,Stephane Carrez3-22/+28
.finiN section. * scripttempl/elfm68hc12.sc: Likewise.
2002-10-122002-10-12 H.J. Lu (hjl@gnu.org)H.J. Lu7-6/+15
* ld-discard/extern.d: Remove $srcdir/$subdir/. * ld-discard/start.d: Likewise. * ld-discard/static.d: Likewise. * ld-linkonce/zeroehl32.d: Likewise. * ld-selective/keepdot.d: Likewise. * ld-selective/keepdot0.d: Likewise.
2002-10-11 * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the outputKaz Kojima16-0/+1539
of linker to the file tmpdir/*-dso.so. * ld-sh/tlsbin.s, ld-sh/tlsbinpic.s, ld-sh/tlslib.s: New. * ld-sh/tlsbin-0-dso.d: New. * ld-sh/tlsbin-1.d: New. * ld-sh/tlsbin-2.d: New. * ld-sh/tlsbin-3.d: New. * ld-sh/tlsbin-4.d: New. * ld-sh/tlspic1.s, ld-sh/tlspic2.s: New. * ld-sh/tlspic-1.d: New. * ld-sh/tlspic-2.d: New. * ld-sh/tlspic-3.d: New. * ld-sh/tlspic-4.d: New.
2002-10-11 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.Alan Modra2-7/+14
2002-10-11 * ldgram.y (memory_spec): Provide empty action.Alan Modra2-3/+9
(section <NAME>): Likewise.
2002-10-10 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts ifJakub Jelinek4-19/+126
they have OUTPUT_FORMAT not matching actual output format. * ldlang.c (lang_get_output_target): New function. (open_output): Use it. * ldlang.h (lang_get_output_target): New prototype.
2002-10-10 * ld-i386/combreloc.s: New test.Jakub Jelinek4-0/+48
* ld-i386/combreloc.d: New test. * ld-i386/i386.exp (i386tests): Add it.
2002-10-10 * ld-i386/i386.exp (reloc): Turn off combreloc.Alan Modra5-5/+12
* ld-i386/reloc.d: Likewise. * ld-powerpc/powerpc.exp: Likewise. * ld-powerpc/reloc.d: Likewise.
2002-10-10 * emultempl/elf32.em (output_rel_find): Prefer .rel script sectionsAlan Modra2-21/+38
when orphan is .rel, .rela when orphan is .rela. (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case first. Remove outsecname var.
2002-10-09* Makefile.am: Add eshelf32_linux.o andStephen Clarke6-0/+88
eshlelf32_linux.o, new emulations for sh64 Linux. * Makefile.in: Regenerate. * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations. * emulparams/shelf32_linux.sh: New file. * emulparams/shlelf32_linux.sh: New file.
2002-10-082002-10-08 H.J. Lu <hjl@gnu.org>H.J. Lu4-29/+7
* ldlang.c (lang_file_exist): Removed. (new_afile): Revert the last change. * ldlang.h (lang_file_exist): Removed. * lexsup.c (parse_args): Revert the last change.
2002-10-07Don't re-export auto-import symbols.Nick Clifton2-2/+12
2002-10-07Abort if the filename to be added matches the linker output filename.Nick Clifton4-28/+66
2002-10-042002-10-03 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* ld-elfvers/vers21.c (_old_foobar): Initialized to -1 for gcc 3.x.
2002-10-032002-10-03 Chris Demetriou <cgd@broadcom.com>Chris Demetriou4-35/+55
* ld-mips-elf/branch-misc-1.d: Link at 0x500000 and use -N, to be more compatible with non-embedded targets. * ld-mips-elf/branch-misc-2.d: Likewise. * ld-mips-elf/mips-elf.exp: Clean up some comments about embedded PIC tests. (elf): New variable, to control whether generic ELF tests are run. (embedded_elf): New variable, to control whether ELF tests requiring embedded PIC or embedded relocs are run.
2002-10-02* ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,Stephen Clarke4-0/+29
ld-sh/sh64/gotplt.s: New test.
2002-10-02* ld-sh/sh64/cmpct1.sd : Fix linked file name.Stephen Clarke3-2/+6
* ld-sh/sh64/crange3.dd: Likewise.
2002-10-02 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.Alan Modra2-1/+5
2002-10-01bfd/Jakub Jelinek4-0/+43
* elf32-i386.c (elf_i386_relocate_section): Fix movl foo@indntpoff, %eax IE->LE transition. ld/testsuite/ * ld-i386/i386.exp: Add tlsindntpoff test. * ld-i386/tlsindntpoff.s: New test. * ld-i386/tlsindntpoff.dd: New test.
2002-10-01bfd/Jakub Jelinek4-25/+65
* elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD sequence and its transitions. ld/testsuite/ * ld-x86-64/tlspic1.s: Change TLSGD sequences. * ld-x86-64/tlsbinpic.s: Likewise. * ld-x86-64/tlspic.dd: Adjust.
2002-10-01bfd/Jakub Jelinek11-8/+71
* elf32-i386.c (elf_i386_relocate_section): Resolve R_386_TLS_LDO_32 to st_value + addend in non-code sections. * elf64-x86-64.c (elf64_x86_64_relocate_section): Resolve R_X86_64_DTPOFF32 to st_value + addend in non-code sections. ld/testsuite/ * ld-i386/i386.exp: Add tlsg test. * ld-i386/tlsg.s: New test. * ld-i386/tlsg.sd: New test. * ld-i386/tlsbin.dd: Change LD into LD -> LE in comments. * ld-i386/tlsbinpic.s: Likewise. * ld-x86-64/x86-64.exp: Add tlsg test. * ld-x86-64/tlsg.s: New test. * ld-x86-64/tlsg.sd: New test. * ld-x86-64/tlsbin.dd: Change LD into LD -> LE in comments. * ld-x86-64/tlsbinpic.s: Likewise.
2002-09-30 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.Alan Modra4-49/+51
* scripttempl/elfm68hc11.sc: Likewise. * scripttempl/elfm68hc12.sc: Likewise.
2002-09-30 * ld-powerpc/powerpc.exp: Restrict to 32 bit ELF.Alan Modra2-2/+6
2002-09-30 * ld-powerpc/reloc.s, ld-powerpc/reloc.d: New.Alan Modra4-0/+74
* ld-powerpc/powerpc.exp: New.
2002-09-30No need to set OTHER_GOT_RELOC_SECTIONS in emulparams/elf32ppclinux.sh.H.J. Lu2-5/+1
2002-09-30 * ld-i386/reloc.s, ld-i386/reloc.d: New.Alan Modra4-0/+33
* ld-i386/i386.exp: Run new test.
2002-09-30 * emultempl/elf32.em (output_rel_find): Always place orphan loadableAlan Modra2-27/+36
reloc sections just before .rel.plt/.rela.plt. (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code. Only put loadable reloc sections in hold_rel.
2002-09-292002-09-29 H.J. Lu <hjl@gnu.org>H.J. Lu3-0/+12
* ld/emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New. * ld/emulparams/elf32ppclinux.sh (OTHER_GOT_RELOC_SECTIONS): New.
2002-09-27bfd/Jakub Jelinek18-394/+1584
* reloc.c: Add x86-64 TLS relocs. * bfd-in2.h, libbfd.h: Rebuilt. * elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit relocs. Add TLS relocs. (x86_64_reloc_map): Add TLS relocs. (elf64_x86_64_info_to_howto): Adjust for added TLS relocs. (struct elf64_x86_64_link_hash_entry): Add tls_type field. (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define. (elf64_x86_64_hash_entry): Define. (struct elf64_x86_64_obj_tdata): New. (elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define. (struct elf64_x86_64_link_hash_table): Add tls_ld_got. (link_hash_newfunc): Initialize tls_type. (elf64_x86_64_link_hash_table_create): Initialize tls_ld_got. (elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary. (elf64_x86_64_mkobject): New. (elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata. (elf64_x86_64_tls_transition): New. (elf64_x86_64_check_relocs): Add r_type variable and use it. Handle TLS relocs. (elf64_x86_64_gc_sweep_hook): Handle TLS relocs. (allocate_dynrelocs): Allocate GOT space for TLS relocs. (elf64_x86_64_size_dynamic_sections): Likewise. (dtpoff_base, tpoff): New. (elf64_x86_64_relocate_section): Handle TLS relocs. (elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT entries. (bfd_elf64_mkobject): Define. * elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set DF_STATIC_TLS if shared. gas/ * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs. Define them if not BFD_ASSEMBLER. (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add @tlsld. (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD, BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF. (tc_gen_reloc): Handle x86-64 TLS relocs. include/ * elf/x86-64.h: Add TLS relocs. ld/testsuite/ * lib/ld-lib.exp (run_ld_link_tests): Add. * ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff, file_contents): Remove. (sh64tests): Add 6th field to the tests array. * ld-i386/i386.exp (run_ld_link_tests): Remove. * ld-x86-64/x86-64.exp: New. * ld-x86-64/tlsbin.dd: New test. * ld-x86-64/tlsbinpic.s: New test. * ld-x86-64/tlsbin.rd: New test. * ld-x86-64/tlsbin.s: New test. * ld-x86-64/tlsbin.sd: New test. * ld-x86-64/tlsbin.td: New test. * ld-x86-64/tlslib.s: New test. * ld-x86-64/tlspic1.s: New test. * ld-x86-64/tlspic2.s: New test. * ld-x86-64/tlspic.dd: New test. * ld-x86-64/tlspic.rd: New test. * ld-x86-64/tlspic.sd: New test. * ld-x86-64/tlspic.td: New test.
2002-09-25 From "Anita Kulkarni" <AnitaK@kpit.com>Daniel Jacobowitz2-0/+11
* scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc* sections.
2002-09-25 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE beforeAlan Modra4-4/+11
TARGET_PAGE_SIZE. * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate SEGMENT_SIZE alignment. * emulparams/elf64ppc.sh (DATA_ADDR): Delete. (SEGMENT_SIZE): Define.
2002-09-25 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.Alan Modra2-91/+138
(fold_binary): Correct abs - non-abs case. (fold_trinary): New. Split out from exp_fold_tree.
2002-09-24 * emulparams/elf64ppc.sh (DATA_ADDR): Define.Alan Modra4-2/+10
* emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address for start of .data, instead align up to 256M boundary. * scripttempl/aix.sc: Likewise.
2002-09-23* scripttempl/i386go32.sc: Handle bss unique sections.DJ Delorie2-1/+5