summaryrefslogtreecommitdiffstats
path: root/ld
Commit message (Collapse)AuthorAgeFilesLines
* * ld-sh/rd-sh.exp: Add -isa=SHcompact to ASFLAGS for SH-5.Kaz Kojima2002-11-046-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.
* * emultempl/aix.em: Use include <> for generated headers.Daniel Jacobowitz2002-10-3016-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.
* * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*Jakub Jelinek2002-10-232-0/+6
| | | | sections into .rel{,a}.dyn.
* Add new command line option "--no-omagic" which undoes the effects of -N.Nick Clifton2002-10-234-2/+30
|
* (__RUNTIME_PSEUDO_RELOC_LIST__, __RUNTIME_PSEUDO_RELOC_LIST_END__): AddNick Clifton2002-10-232-4/+9
| | | | only when relocating.
* * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according toAlexandre Oliva2002-10-226-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.
* * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.Alexandre Oliva2002-10-177-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.
* * config.bfd (s390-*-linux*): Add targ64_selvecs.Jakub Jelinek2002-10-165-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.
* * ldlang.c (load_symbols): Revert last change.Alan Modra2002-10-152-3/+5
|
* * ld-m68hc11/m68hc11.exp: Specific tests for 68HC11/68HC12.Stephane Carrez2002-10-1412-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.
* ld-sh/ld-r-1.d: Disable for sh64*-*-linux*.Stephen Clarke2002-10-147-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*.
* * ldlang.c (load_symbols): Don't call bfd_link_add_symbols whenAlan Modra2002-10-142-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.
* * Makefile.am: Run "make dep-am".Alan Modra2002-10-144-7/+14
| | | | | * Makefile.in: Regenerate. * ldver.c: #include "bfdver.h".
* * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,Stephane Carrez2002-10-133-22/+28
| | | | | .finiN section. * scripttempl/elfm68hc12.sc: Likewise.
* 2002-10-12 H.J. Lu (hjl@gnu.org)H.J. Lu2002-10-127-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.
* * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the outputKaz Kojima2002-10-1116-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.
* * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.Alan Modra2002-10-112-7/+14
|
* * ldgram.y (memory_spec): Provide empty action.Alan Modra2002-10-112-3/+9
| | | | (section <NAME>): Likewise.
* * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts ifJakub Jelinek2002-10-104-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.
* * ld-i386/combreloc.s: New test.Jakub Jelinek2002-10-104-0/+48
| | | | | * ld-i386/combreloc.d: New test. * ld-i386/i386.exp (i386tests): Add it.
* * ld-i386/i386.exp (reloc): Turn off combreloc.Alan Modra2002-10-105-5/+12
| | | | | | * ld-i386/reloc.d: Likewise. * ld-powerpc/powerpc.exp: Likewise. * ld-powerpc/reloc.d: Likewise.
* * emultempl/elf32.em (output_rel_find): Prefer .rel script sectionsAlan Modra2002-10-102-21/+38
| | | | | | when orphan is .rel, .rela when orphan is .rela. (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case first. Remove outsecname var.
* * Makefile.am: Add eshelf32_linux.o andStephen Clarke2002-10-096-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-08 H.J. Lu <hjl@gnu.org>H.J. Lu2002-10-084-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.
* Don't re-export auto-import symbols.Nick Clifton2002-10-072-2/+12
|
* Abort if the filename to be added matches the linker output filename.Nick Clifton2002-10-074-28/+66
|
* 2002-10-03 H.J. Lu <hjl@gnu.org>H.J. Lu2002-10-042-1/+6
| | | | | * ld-elfvers/vers21.c (_old_foobar): Initialized to -1 for gcc 3.x.
* 2002-10-03 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2002-10-034-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.
* * ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,Stephen Clarke2002-10-024-0/+29
| | | | ld-sh/sh64/gotplt.s: New test.
* * ld-sh/sh64/cmpct1.sd : Fix linked file name.Stephen Clarke2002-10-023-2/+6
| | | | * ld-sh/sh64/crange3.dd: Likewise.
* * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.Alan Modra2002-10-022-1/+5
|
* bfd/Jakub Jelinek2002-10-014-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.
* bfd/Jakub Jelinek2002-10-014-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.
* bfd/Jakub Jelinek2002-10-0111-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.
* * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.Alan Modra2002-09-304-49/+51
| | | | | * scripttempl/elfm68hc11.sc: Likewise. * scripttempl/elfm68hc12.sc: Likewise.
* * ld-powerpc/powerpc.exp: Restrict to 32 bit ELF.Alan Modra2002-09-302-2/+6
|
* * ld-powerpc/reloc.s, ld-powerpc/reloc.d: New.Alan Modra2002-09-304-0/+74
| | | | * ld-powerpc/powerpc.exp: New.
* No need to set OTHER_GOT_RELOC_SECTIONS in emulparams/elf32ppclinux.sh.H.J. Lu2002-09-302-5/+1
|
* * ld-i386/reloc.s, ld-i386/reloc.d: New.Alan Modra2002-09-304-0/+33
| | | | * ld-i386/i386.exp: Run new test.
* * emultempl/elf32.em (output_rel_find): Always place orphan loadableAlan Modra2002-09-302-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-29 H.J. Lu <hjl@gnu.org>H.J. Lu2002-09-293-0/+12
| | | | | * ld/emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New. * ld/emulparams/elf32ppclinux.sh (OTHER_GOT_RELOC_SECTIONS): New.
* bfd/Jakub Jelinek2002-09-2718-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.
* From "Anita Kulkarni" <AnitaK@kpit.com>Daniel Jacobowitz2002-09-252-0/+11
| | | | | * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc* sections.
* * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE beforeAlan Modra2002-09-254-4/+11
| | | | | | | | TARGET_PAGE_SIZE. * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate SEGMENT_SIZE alignment. * emulparams/elf64ppc.sh (DATA_ADDR): Delete. (SEGMENT_SIZE): Define.
* * ldexp.c (fold_unary): New. Split out from exp_fold_tree.Alan Modra2002-09-252-91/+138
| | | | | (fold_binary): Correct abs - non-abs case. (fold_trinary): New. Split out from exp_fold_tree.
* * emulparams/elf64ppc.sh (DATA_ADDR): Define.Alan Modra2002-09-244-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.
* * scripttempl/i386go32.sc: Handle bss unique sections.DJ Delorie2002-09-232-1/+5
|
* * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.Alan Modra2002-09-212-40/+29
|
* * ld-undefined/undefined.exp: Adjust function test.Alan Modra2002-09-212-1/+5
|
* * ld-i386/i386.exp: Only run tests on ELF targets.Alan Modra2002-09-202-1/+8
|
OpenPOWER on IntegriCloud