Hans-Peter Nilsson
ba3360ee53
* ld-mmix/bpo-9.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d: Adjust for
...
recent objdump "Contents of ..." change.
2003-08-16 11:15:25 +00:00
Kaz Kojima
866f48b717
* elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here.
...
* ld-sh/shared-2.d, ld-sh/textrel1.s, ld-sh/textrel2.s: New test.
2003-08-02 13:46:44 +00:00
Alan Modra
edf6a2322f
Adjust for objdump -d change.
2003-08-02 11:34:30 +00:00
Jakub Jelinek
933f40e758
* ld-elfvsb/elf-offset.ld: Add .rel.toc, .rela.toc and .toc
...
sections.
--- ld/testsuite/ld-elfvsb/elf-offset.ld.jj 2003-05-19 17:12:47.000000000 -0400
+++ ld/testsuite/ld-elfvsb/elf-offset.ld 2003-07-29 05:39:34.000000000 -0400
@@ -46,6 +46,8 @@ SECTIONS
}
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
+ .rel.toc : { *(.rel.toc) }
+ .rela.toc : { *(.rela.toc) }
.rel.ctors : { *(.rel.ctors) }
.rela.ctors : { *(.rela.ctors) }
.rel.dtors : { *(.rel.dtors) }
@@ -111,6 +113,7 @@ SECTIONS
KEEP (*(.dtors))
}
.got : { *(.got.plt) *(.got) }
+ .toc : { *(.toc) }
.dynamic : { *(.dynamic) }
/* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so
2003-07-29 14:02:55 +00:00
Alan Modra
452575a9ac
* ld-powerpc/tlsso.r: Update.
...
* ld-powerpc/tlstocso.r: Update.
2003-07-29 06:53:41 +00:00
Nick Clifton
10eafd9ffd
Update expected output regexps to include .eh_frame section.
2003-07-29 06:26:23 +00:00
Alan Modra
b59a021820
Update tests for corrected section attributes and objdump change.
2003-07-26 10:22:01 +00:00
H.J. Lu
13752416b5
2003-07-24 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-powerpc/tlsexe.r: .sbss is NOBITS, not PROGBITS.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
2003-07-25 01:39:42 +00:00
Stephane Carrez
48e833341a
* ld-srec/srec.exp: For m6811/m6812 use --defsym to define _.z soft
...
register.
2003-07-23 19:55:53 +00:00
H.J. Lu
d416627cc3
2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-selective/selective.exp: Skip "ia64-*-*".
* ld-srec/srec.exp: Make xfail on "ia64-*-*".
2003-07-22 14:58:35 +00:00
Richard Sandiford
7a9823f1a9
bfd/
...
* bfd-in.h (bfd_h8300_pad_address): Declare.
* bfd-in2.h: Regenerate.
* cpu-h8300.c (bfd_h8300_pad_address): New function.
* coff-h8300.c (h8300_reloc16_estimate): Use it to canonicalize
addresses before checking whether they can be relaxed.
(h8300_reloc16_extra_cases): Likewise for the R_MOVL2 sanity check.
Don't complain about overflows in general 8-bit relocations.
* elf32-h8300.c (elf32_h8_relax_section): Use bfd_h8300_pad_address.
Fix handling of R_H8_DIR24A8.
ld/testsuite/
* ld-h8300/relax-3{.s,.d,-coff.d}: New test.
* ld-h8300/h8300.exp: Run it.
2003-07-11 14:59:41 +00:00
Alan Modra
1c0bd72e41
* ld-powerpc/powerpc.exp: Dump output .got section rather than .toc.
...
* ld-powerpc/tlsexetoc.g: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlstoc.g: Update.
* ld-powerpc/tlstocso.g: Update.
* ld-powerpc/tlstocso.r: Update.
2003-07-10 00:38:42 +00:00
Nick Clifton
8c17da6e59
* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
...
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
<R_H8_DIR32A16>: Fix type of relocation.
* ld-h8300/h8300.exp: Replace loop with explicit list. Run relax.d
unconditionally. Run relax-2.d for *-elf targets.
* ld-h8300/relax.d: Fix typo.
* ld-h8300/relax.s: Add 0x prefixes.
* ld-h8300/relad-2.[sd]: New test.
2003-07-04 10:25:14 +00:00
Thiemo Seufer
fbf18a5ce9
* ld-mips-elf/mips-elf.exp: Use is_elf_format.
2003-06-28 22:14:59 +00:00
Thiemo Seufer
0c29b4ccce
* ld-mips-elf/mips-elf-flags.exp: Use -melf32bsmip for IRIX6.
2003-06-28 22:12:26 +00:00
Alan Modra
264d75f79b
* ld-powerpc/apuinfo.rd: Update.
2003-06-25 11:12:46 +00:00
Thiemo Seufer
b7c7d6c193
* config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
...
special handling for n32 ABI.
(macro): Likewise.
* gas/mips/elf-rel-got-n32.d: Remove special handling for n32 ABI.
* gas/mips/elf-rel-xgot-n32.d: Likewise.
* gas/mips/jal-newabi.d: Likewise.
* ld-mips-elf/elf-rel-got-n32.d: Remove special handling for n32 ABI.
* ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
2003-06-21 21:38:04 +00:00
Hans-Peter Nilsson
c1f1974625
* ld-cris/locref1.d, ld-cris/locref1.s, ld-cris/locref2.d,
...
ld-cris/locref2.s: New tests.
2003-06-18 04:11:13 +00:00
Hans-Peter Nilsson
a42ec05b09
* ld-elfcomm/elfcomm.exp (dump_common1): Use $READELF, not plain
...
readelf as found using default path.
2003-06-18 03:38:05 +00:00
Alan Modra
b0fe1bf34d
* lib/ld-lib.exp (default_ld_simple_link): Trim ld parms before
...
trying to trim ld path.
(default_ld_compile): Likewise for cc.
2003-06-18 01:55:57 +00:00
Alan Modra
0f84fde19e
* lib/ld-lib.exp (default_ld_simple_link): Trim ld path before
...
looking for gcc match.
(default_ld_compile): Likewise for cc.
2003-06-17 23:26:57 +00:00
Nick Clifton
40bdaaa8ed
* ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.
...
* configure.host (*-*-freebsd*): Add known path for ld-elf.so.1 if not produced by gcc.
2003-06-17 11:01:17 +00:00
Alan Modra
37c18fe25f
* ld-powerpc/tlsexetoc.d: Update.
...
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlstoc.d: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.r: Update.
2003-06-16 10:51:07 +00:00
Hans-Peter Nilsson
1de1cfb15b
* ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.
...
* ld-cris/noglob1.d: Ditto.
* ld-cris/badgotr1.d: Pass --underscore to gas.
2003-06-16 00:02:36 +00:00
Thiemo Seufer
31a1f3a136
* ld-mips-elf/elf-rel-got-n64-linux.d: New file.
...
* ld-mips-elf/elf-rel-xgot-n64-linux.d: New file.
* ld-mips-elf/mips-elf.exp: Use the new files for Linux.
2003-06-12 17:07:14 +00:00
Thiemo Seufer
2d8f7dc8d5
* ld-mips-elf/relax-jalr.s: Fix testsuite breakage.
...
* ld-mips-elf/relax-jalr-n32.d: Likewise.
* ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
* ld-mips-elf/relax-jalr-n64.d: Likewise.
* ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
2003-06-11 22:51:59 +00:00
Thiemo Seufer
d80dcc6af4
* elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME): Use .MIPS.options
...
for n32, too.
(MIPS_ELF_STUB_SECTION_NAME): Use .MIPS.stubs for n32, too.
(mips_elf_rel_dyn_section): Use appropriate section alignment.
(mips_elf_create_got_section): Likewise.
(_bfd_mips_elf_create_dynamic_sections): Likewise.
* ld-mips-elf/multi-got-1.d: Adjust addresses.
* ld-mips-elf/rel32-n32.d: Likewise.
2003-06-11 21:01:50 +00:00
Alan Modra
4c80642a39
* ld-srec/srec.exp (run_srec_test): Remove powerpc64 xfails, and
...
xfail for hppa duplicated elsewhere.
2003-06-11 06:20:44 +00:00
Thiemo Seufer
5ef0935e19
* gas/mips/mips.exp: Fix typo.
...
* gas/mips/elempic.d: Force o64 ABI.
* gas/mips/telempic.d: Likewise.
* ld-mips-elf/rel32-n32.d: Force big endian assembly.
* ld-mips-elf/rel32-o32.d: Likewise.
* ld-mips-elf/rel64.d: Likewise.
2003-06-10 19:45:24 +00:00
Alan Modra
81cacc150b
* ld-elfvsb/elfvsb.exp: Run for powerpc64 too.
...
* ld-powerpc/tls.t: Update.
* ld-powerpc/tlsexe.d: Update.
* ld-powerpc/tlsexe.r: Update.
* ld-powerpc/tlsexetoc.d: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlsexetoc.t: Update.
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlsso.g: Update.
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlsso.t: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.g: Update.
* ld-powerpc/tlstocso.r: Update.
* ld-powerpc/tlstocso.t: Update.
2003-06-10 04:36:01 +00:00
H.J. Lu
6f6f27f842
bfd/
...
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (elf_link_input_bfd): Call linker error_handler
for discarded definitions.
include/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (LD_DEFINITION_IN_DISCARDED_SECTION): New.
ld/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* ldmisc.c: Include "bfdlink.h".
(error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
and -LD_DEFINITION_IN_DISCARDED_SECTION.
* Makefile.am: Rebuild dependency.
* Makefile.in: Regenerated.
ld/testsuite/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* ld-discard/extern.d: Updated.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
2003-06-03 18:15:05 +00:00
H.J. Lu
b814bbcbee
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfcomm/elfcomm.exp: Mark tests untested if compiler is
not available.
2003-06-03 15:28:36 +00:00
Nick Clifton
3bb727441d
Add new test for cygwin target: building an executable with an export table.
2003-06-02 09:11:01 +00:00
H.J. Lu
cdaeef2eb5
ld/
...
2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
* genscripts.sh: Create tmpdir/libpath.exp.
ld/testsuite/
2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
* config/default.exp: Load tmpdir/libpath.exp.
(gcc_ld_flag): Set from $libpath.
2003-05-30 13:23:25 +00:00
Jason Thorpe
43f9d75bc1
* ld-elf/elf.exp: Use if_elf_format.
...
* ld-elf/sec64k.exp: Likewise.
* ld-elfcomm/elfcomm.exp: Likewise.
* lib/ld-lib.exp (is_elf_format): Match hppa*64*-*-hpux*.
2003-05-29 00:16:46 +00:00
Jason Thorpe
493e6a13fd
* ld-mips-elf/mips-elf.exp: Make all NetBSD targets match as elf.
2003-05-25 14:36:19 +00:00
H.J. Lu
22d5e33918
bfd/
...
2003-05-20 Jakub Jelinek <jakub@redhat.com>
* elflink.h (elf_link_output_extsym): Only issue error about !=
STV_DEFAULT symbols if they are bfd_link_hash_undefined.
2003-05-20 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_merge_symbol): Check ELF_LINK_DYNAMIC_DEF
when removing the old definition for symbols with non-default
visibility.
ld/testsuite/
2003-05-20 Jakub Jelinek <jakub@redhat.com>
* ld-elfvsb/common.c: New file.
* ld-elfvsb/elfvsb.exp: Add common.
2003-05-20 H.J. Lu <hongjiu.lu@intel.com>
* ld-elfvsb/sh3.c: New file.
* ld-elfvsb/test.c: Likewise.
* ld-elfvsb/elfvsb.exp: Add new weak hidden symbol tests.
2003-05-20 14:35:01 +00:00
H.J. Lu
b765d4e375
2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
...
* config/default.exp (gcc_ld_flag): New. Make the newly built
linker available to gcc.
* lib/ld-lib.exp (default_ld_simple_link): Pass $gcc_ld_flag
to gcc.
* ld-elfvers/vers.exp: Use "ld_simple_link $CC" to build shared
libraries.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfweak/elfweak.exp: Likewise.
* ld-shared/shared.exp: Likewise.
* ld-elfvers/vers.exp: Use "-Wl,-rpath,." to build shared
libraries.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfvsb/elfvsb.exp: Remove xfail for powerpc-*-linux*.
* ld-elfweak/elfweak.exp: Use PIC for shared libraries.
2003-05-16 05:04:34 +00:00
Stephane Carrez
99573a9826
* ld-m68hc11/link-hcs12.d: New test.
...
* ld-m68hc11/link-hcs12.s: New file.
* ld-m68hc11/link-hc12.s: New file.
2003-05-13 19:11:45 +00:00
H.J. Lu
5c449c3fa6
2003-05-13 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfweak/elfweak.exp: Fix typo.
2003-05-13 16:13:28 +00:00
Nick Clifton
59758b1cc8
Run on sh[34]*-*-linux*.
2003-05-13 11:39:58 +00:00
Hans-Peter Nilsson
5ff4a71ef3
* ld-mmix/b-fixo2.d, ld-mmix/bpo-18.d, ld-mmix/bpo-18m.d,
...
ld-mmix/loc4.d, ld-mmix/loc4m.d, ld-mmix/loc6.d, ld-mmix/loc6m.d,
ld-mmix/locdo-1.d, ld-mmix/sec-1.d, ld-mmix/sec-2.d,
ld-mmix/sec-3.d, ld-mmix/sec-4.d, ld-mmix/sec-5.d,
ld-mmix/sec-7m.d, ld-mmix/sec-8m.d, ld-mmix/spec802.d,
ld-mmix/spec803.d, ld-mmix/spec804.d, ld-mmix/spec805.d,
ld-mmix/spec806.d, ld-mmix/spec807.d, ld-mmix/spec808.d: Tweak for
objdump no longer truncating dump addresses.
2003-05-12 05:45:38 +00:00
Martin Schwidefsky
4648dfcf5b
* ld-elfvsb/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
...
to linker script.
* ld-elfvsb/elfvsb.exp (visibility_run): Add setup_xfails for s390x.
* ld-selective/selective.exp: Disable for s390 and s390x.
* ld-shared/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
to linker script.
* ld-shared/shared.exp (shared_test): Add setup_xfails for s390x.
* ld-undefined/undefined.exp (checkund): Remove setup_xfail for s390x.
2003-05-09 15:35:09 +00:00
H.J. Lu
54c9a60f31
2003-05-08 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfvers/vers.exp: Add vers27d4 and vers27d5 to test
versioned reference for hidden symbol.
* ld-elfvers/vers27d4.dsym: New file.
* ld-elfvers/vers27d4.ver: Likewise.
2003-05-08 19:51:48 +00:00
H.J. Lu
95b4a16ea5
2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfvers/vers27d3.c (__start): New.
(start): New.
2003-05-08 07:01:11 +00:00
H.J. Lu
0ae911fecd
2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfvers/vers.exp (build_binary): Support build exeutable.
(build_binary): Renamed from ...
(build_vers_lib): This.
(build_vers_lib_no_pic): Updated.
(build_vers_lib_pic): Likewise.
Add vers27d1, vers27d2 and vers27d3 to test versioned
definition for hidden symbol referenced by a DSO.
* ld-elfvers/vers27d.dsym: New file.
* ld-elfvers/vers27d.sym: Likewise.
* ld-elfvers/vers27d.ver: Likewise.
* ld-elfvers/vers27d1.c: Likewise.
* ld-elfvers/vers27d2.c: Likewise.
* ld-elfvers/vers27d3.c: Likewise.
2003-05-08 05:10:47 +00:00
Andreas Schwab
3a8260b266
* ld-elfvsb/elfvsb.exp: Run dump tests even when cross
...
compiling.
2003-05-07 09:21:27 +00:00
Alexandre Oliva
697380b39c
* config/default.exp (gcc_gas_flags): Force ABI to n32 on
...
mips64-linux.
* ld-elf/merge.d: Xfail on mips64*-linux-gnu*.
* ld-mips-elf/mips-elf-flags.exp (ldemul): Set to o32-compatible
on mips-sgi-irix6*, mips64-linux-gnu and mips64el-linux-gnu.
(good_combination, bad_combination): Use it.
Add -32 or -mabi=o64 wherever the ABI was formerly implied.
2003-05-07 05:08:02 +00:00
H.J. Lu
08d5f1b40e
2003-05-06 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp (objdump_versionstuff): Support comment
in expected version file.
* ld-elfvers/vers25b.c: Add a line of comment.
* ld-elfvers/vers25b.dsym: Likwise.
* ld-elfvers/vers25b.ver: Likwise.
* ld-elfvers/vers26b.dsym: Likwise.
* ld-elfvers/vers26b.ver: Likwise.
* ld-elfvers/vers27b.dsym: Likwise.
* ld-elfvers/vers27b.ver: Likwise.
* ld-elfvers/vers27c.c: Likwise.
* ld-elfvers/vers27c.dsym: Likwise.
* ld-elfvers/vers27c.ver: Likwise.
2003-05-06 15:55:09 +00:00
H.J. Lu
ef5aade5ac
bfd/
...
2003-05-04 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (allocate_dynrelocs): Don't allocate dynamic
relocation entries for weak undefined symbols with non-default
visibility.
(elf_i386_relocate_section): Initialize the GOT entries and
skip R_386_32/R_386_PC32 for weak undefined symbols with
non-default visibility.
* elfxx-ia64.c (allocate_fptr): Don't allocate function
descriptors for weak undefined symbols with non-default
visibility.
(allocate_dynrel_entries): Don't allocate relocation entries
for symbols resolved to 0.
(set_got_entry): Don't install dynamic relocation for weak
undefined symbols with non-default visibility.
(set_pltoff_entry): Likewise.
* elflink.h (elf_fix_symbol_flags): Hide weak undefined symbols
with non-default visibility.
(elf_link_output_extsym): Don't make weak undefined symbols
with non-default visibility dynamic.
ld/testsuite/
2003-05-04 H.J. Lu <hjl@gnu.org>
* ld-elfvsb/main.c: Updated.
* ld-elfvsb/sh1.c: Likewise.
2003-05-05 05:46:53 +00:00