binutils-gdb/ld/testsuite/ld-pe/reloc.d
Jan Beulich 5dc75cf325 ld: adjust PE base relocations testcase
mcore-pe and sh-pe pointed out that the testcase added by 6fa7408d72
("ld: don't generate base relocations in PE output for absolute
symbols") wasn't quite generic enough yet. Copy entry point stuff from
another test and increase alignment to also cover targets with a page
size lower than 4k.

Despite all of this the test needs to be xfail-ed for mcore, as this
target isn't included in the set getting DLL_SUPPORT enabled in
emultempl/pe.em, and hence no base relocations get generated there
(yet).
2021-03-09 12:40:13 +01:00

16 lines
389 B
D

#name: PE base relocations
#ld: --enable-reloc-section
#objdump: -p
#xfail: mcore-*-*
.*: file format .*
#...
PE File Base Relocations.*
Virtual Address: .* Number of fixups 4
[ ]*reloc 0 offset 0 .* (LOW|HIGHLOW|DIR64)
[ ]*reloc 1 offset [248] .* (LOW|HIGHLOW|DIR64)
[ ]*reloc 2 offset [124]0 .* (LOW|HIGHLOW|DIR64)
[ ]*reloc 3 offset 0 .* ABSOLUTE
#pass