aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
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
2002-09-21 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.Alan Modra2-40/+29
2002-09-21 * ld-undefined/undefined.exp: Adjust function test.Alan Modra2-1/+5
2002-09-20 * ld-i386/i386.exp: Only run tests on ELF targets.Alan Modra2-1/+8
2002-09-19bfd/Jakub Jelinek20-0/+2540
* reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Add. * bfd-in2.h, libbfd.h: Rebuilt. * elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE and R_386_TLS_GOTIE. (elf_i386_reloc_type_lookup): Handle it. (struct elf_i386_link_hash_entry): Change tls_type type to unsigned char instead of enum, change GOT_* into defines. (GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define. (elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE. (elf_i386_check_relocs): Likewise. Avoid crash if local symbol is accessed both as normal and TLS symbol. Move R_386_TLS_LDM and R_386_PLT32 cases so that R_386_TLS_IE can fall through. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. (elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. (allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if tls_type is GOT_TLS_IE_BOTH. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE. Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. (elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch all 4 GOT_TLS_* TLS types. gas/ * config/tc-i386.c (tc_i386_fix_adjustable): Handle BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE. (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0 if not defined. (lex_got): Handle @GOTNTPOFF and @INDNTPOFF. (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE. gas/testsuite/ * gas/i386/tlspic.s: Add tests. * gas/i386/tlspic.d: Regenerated. * gas/i386/tlsnopic.s: Add tests. * gas/i386/tlsnopic.d: Regenerated. include/ * elf/i386.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE): Define. ld/testsuite/ * ld-i386/i386.exp: New. * ld-i386/tlsbin.dd: New test. * ld-i386/tlsbinpic.s: New test. * ld-i386/tlsbin.rd: New test. * ld-i386/tlsbin.s: New test. * ld-i386/tlsbin.sd: New test. * ld-i386/tlsbin.td: New test. * ld-i386/tlslib.s: New test. * ld-i386/tlsnopic1.s: New test. * ld-i386/tlsnopic2.s: New test. * ld-i386/tlsnopic.dd: New test. * ld-i386/tlsnopic.rd: New test. * ld-i386/tlsnopic.sd: New test. * ld-i386/tlspic1.s: New test. * ld-i386/tlspic2.s: New test. * ld-i386/tlspic.dd: New test. * ld-i386/tlspic.rd: New test. * ld-i386/tlspic.sd: New test. * ld-i386/tlspic.td: New test.
2002-09-18[ gas/testsuite/ChangeLog ]Chris Demetriou4-0/+69
2002-09-18 Chris Demetriou <cgd@broadcom.com> * gas/mips/branch-misc-1.d: New file. * gas/mips/branch-misc-1.s: New file. * gas/mips/branch-misc-2.s: New file. * gas/mips/branch-misc-2.d: New file. * gas/mips/mips.exp: Run new tests. [ ld/testsuite/ChangeLog ] 2002-09-18 Chris Demetriou <cgd@broadcom.com> * ld-mips-elf/branch-misc-1.d: New file. * ld-mips-elf/branch-misc-2.d: New file. * ld-mips-elf/mips-elf.exp: Run new tests.
2002-09-18 * emulparams/elf32bmipn32-defs.sh: New file.Stan Cox6-74/+91
* emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh. * emulparams/elf32btsmipn32.sh: Likewise. * emulparams/elf64bmip.sh: Likewise. * emulparams/elf64btsmip.sh: Likewise.
2002-09-172002-09-16 Bruno Haible <bruno@clisp.org>David O'Brien3-0/+9
* elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included by a target variant implementation. * elf64-alpha.c: Likewise. * elf32-i386-fbsd.c: New file. * elf64-alpha-fbsd.c: New file. * targets.c: Support bfd_elf32_i386_freebsd_vec and bfd_elf64_alpha_freebsd_vec. * configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec, bfd_elf64_alpha_freebsd_vec. * Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo. (BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c. (BFD64_BACKENDS): Add elf64-alpha-fbsd.lo. (BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c. (elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies. * config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate. * config/tc-i386.h (ELF_TARGET_FORMAT): New macro. (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386". * config/tc-i386.c (i386_target_format): Likewise. * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro. (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha". * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to elf32-i386-freebsd. * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to elf64-alpha-freebsd. Approved by: Alan Modra <amodra@bigpond.net.au> Message-ID: <20020715021113.GJ30362@bubble.sa.bigpond.net.au>
2002-09-11New TI port supports both C4x and C3x series of DSPs.Nick Clifton2-3/+5
2002-09-11Update translationsNick Clifton2-380/+431
2002-09-06 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.Jeff Law2-2/+6
2002-09-05 * ld-sh/sh64/cmpct1.xd: Adjust for lack of abs section sym.Alan Modra5-46/+49
* ld-sh/sh64/crange3-cmpct.rd: Likewise. * ld-sh/sh64/crange3-media.rd: Likewise. * ld-sh/sh64/crange3.rd: Likewise.
2002-09-02Add EXTERN references to __ctbpm __gp and __ep.Nick Clifton4-14/+18
Define TEMPLATE_NAME. Revert bogus change to ldexp.c
2002-09-02Fix PROVIDENick Clifton2-13/+17
2002-08-31 * ld-mmix/bpo-10.d: Tweak for change in symbols handling.Hans-Peter Nilsson10-11/+24
* ld-mmix/bpo-11.d: Ditto. * ld-mmix/b-nosym.d: Adjust for changed output for absence of symbols. * ld-mmix/sec-7m.d: Rename tested section from .debug_info to .di. * ld-mmix/sec-7a.s, ld-mmix/sec-7b.s, ld-mmix/sec-7c.s, ld-mmix/sec-7d.s, ld-mmix/sec-7e.s: Ditto.
2002-08-30Update description to reflect D10V TS3 board.Nick Clifton2-5/+22
2002-08-30 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".Alan Modra2-1/+5
2002-08-28Add TMS320C4x supportNick Clifton9-0/+229
2002-08-28 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,Alan Modra2-10/+16
strtoul and strtoull with bfd_scan_vma. (gld${EMULATION_NAME}_read_file): Likewise.
2002-08-28 * ld-discard/discard.exp: xfail m6812.Alan Modra3-2/+8
* ld-scripts/map-address.d: Adjust for extras emitted by pe targets.
2002-08-28 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.Alan Modra2-2/+6
2002-08-27Handle .rdata_runtime_pseudo_reloc sections.Nick Clifton2-0/+10
2002-08-27Revert ARM linker patch and apply similar patch to bfd insteadNick Clifton2-82/+49
2002-08-26Revert last change.Alan Modra2-5/+9
2002-08-26 * ld-mmix/b-nosym.d: Adjust for "no symbols" on stdout.Alan Modra2-5/+9
2002-08-23 * ld-sh/sh64/rd-sh64.exp: New framework file.Alan Modra6-0/+111
* ld-sh/sh64/init-cmpct.d, ld-sh/sh64/init-media.d, ld-sh/sh64/init64.d, ld-sh/sh64/init.s: New tests for correct setting of ISA bit for init and fini entry-points.
2002-08-23Add --with-lib-patch configure switch.Nick Clifton7-207/+241
2002-08-22Set the last bit of DT_INIT and DT_FINI depending on the type of the function.Nick Clifton2-43/+89
2002-08-22Add sh-nto supportNick Clifton6-1/+48
2002-08-20 * ldlang.c (offsetof): Define if not defined.Alan Modra2-0/+8
2002-08-16 * ld-sh/sh64/sh64.exp: Add dlsection.Stephen Clarke4-0/+41
* ld-sh/sh64/dlsection-1.s, ld-sh/sh64/dlsection.sd: New.
2002-08-16 * ld-discard/discard.exp: xfail targets using generic linker.Alan Modra3-1/+8
* ld-discard/extern.d: Allow "data" to be reduced to a section sym.
2002-08-15 * ld-cris/libdso-4.d, ld-cris/undef1.d: New test.Hans-Peter Nilsson3-0/+28
2002-08-14 * ld-sh/sh64/shdl64.xd: Adjust as type of linker-script-symbolsHans-Peter Nilsson1-8/+8
is no longer set to object. (Forgotten commit)