2004-09-07 20:32:27 +02:00
|
|
|
#source: gotrel1.s
|
|
|
|
#source: hiddef1.s
|
|
|
|
#source: hidrefgotplt1.s
|
|
|
|
#ld: -shared -m crislinux
|
Adjust testsuite for cris-axis-aout.
* ld-cris/noglob1.d: Adjust regexp for a.out output.
* ld-cris/badgotr1.d, ld-cris/expdyn1.d, ld-cris/expdyn2.d,
ld-cris/expdyn3.d, ld-cris/expdyn4.d, ld-cris/expdyn5.d,
ld-cris/expdyn6.d, ld-cris/expdyn7.d, ld-cris/gotplt1.d,
ld-cris/gotplt2.d, ld-cris/gotplt3.d, ld-cris/hiddef1.d,
ld-cris/libdso-1.d, ld-cris/libdso-10.d, ld-cris/libdso-11.d,
ld-cris/libdso-12.d, ld-cris/libdso-13.d, ld-cris/libdso-14.d,
ld-cris/libdso-2.d, ld-cris/libdso-3.d, ld-cris/libdso-4.d,
ld-cris/locref1.d, ld-cris/locref2.d, ld-cris/nodyn4.d,
ld-cris/nodyn5.d, ld-cris/pv32-1.d, ld-cris/undef1.d,
ld-cris/weakref1.d: ld-cris/weakref2.d: Pass --em=criself to gas.
* ld-cris/v10-v32.d, ld-cris/v10-va.d, ld-cris/v32-ba-1.d,
ld-cris/v32-v10.d, ld-cris/v32-va.d, ld-cris/va-v10.d,
ld-cris/va-v32.d: Ditto. Pass -m criself to gld.
* ld-cris/v32-bin-1.d: Pass -m criself to gld.
2005-03-08 03:31:40 +01:00
|
|
|
#as: --pic --no-underscore -I$srcdir/$subdir --em=criself
|
2004-09-07 20:32:27 +02:00
|
|
|
#readelf: -S -s -r
|
|
|
|
|
|
|
|
# Regression test for mishandling of GOTPLT relocs against a
|
|
|
|
# hidden symbol, where the reloc is found after the symbol
|
|
|
|
# definition. There should be no PLT, just a single GOT entry
|
|
|
|
# from a GOTPLT reloc moved to the .got section. It's hard to
|
|
|
|
# check for absence of a .plt section, so we just check the
|
|
|
|
# number of symbols and sections. When the number of symbols
|
|
|
|
# and sections change, make sure that there's no .plt and that
|
|
|
|
# dsofn is hidden (not exported as a dynamic symbol).
|
|
|
|
|
2005-06-05 17:28:36 +02:00
|
|
|
There are 11 section headers, starting at offset 0x[0-9a-f]+:
|
2004-09-07 20:32:27 +02:00
|
|
|
#...
|
|
|
|
\[[ 0-9]+\] \.got PROGBITS [0-9a-f]+ [0-9a-f]+ 0+10 04 WA 0 0 4
|
|
|
|
#...
|
|
|
|
Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
|
|
|
|
#...
|
|
|
|
[0-9a-f]+ 0+c R_CRIS_RELATIVE [0-9a-f]+
|
|
|
|
#...
|
2005-08-15 17:39:48 +02:00
|
|
|
Symbol table '\.dynsym' contains 6 entries:
|
2004-09-07 20:32:27 +02:00
|
|
|
#...
|
2006-06-02 02:32:00 +02:00
|
|
|
Symbol table '\.symtab' contains 16 entries:
|
2004-09-07 20:32:27 +02:00
|
|
|
#pass
|