mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
5dc75cf325
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).
16 lines
389 B
D
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
|