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).
21 lines
342 B
ArmAsm
21 lines
342 B
ArmAsm
.text
|
|
.global _start
|
|
.global _mainCRTStartup
|
|
_start:
|
|
_mainCRTStartup:
|
|
.byte 1
|
|
|
|
.data
|
|
.p2align 12
|
|
start:
|
|
.dc.a __image_base__
|
|
.dc.a start
|
|
.dc.a __section_alignment__
|
|
.dc.a __file_alignment__
|
|
.dc.a __major_os_version__
|
|
.dc.a __minor_os_version__
|
|
.dc.a __major_subsystem_version__
|
|
.dc.a __minor_subsystem_version__
|
|
.dc.a end
|
|
end:
|