diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-03-09 12:40:13 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-03-09 12:40:13 +0100 |
commit | 5dc75cf3254c1b3c5b62125f47b543407836a4b6 (patch) | |
tree | 5a2c9f8fd2b378e569291ffe115607d1521bbd59 | |
parent | fbb1aacebac7d1fd556cf9c46e9af89aaaa62398 (diff) | |
download | gdb-5dc75cf3254c1b3c5b62125f47b543407836a4b6.zip gdb-5dc75cf3254c1b3c5b62125f47b543407836a4b6.tar.gz gdb-5dc75cf3254c1b3c5b62125f47b543407836a4b6.tar.bz2 |
ld: adjust PE base relocations testcase
mcore-pe and sh-pe pointed out that the testcase added by 6fa7408d72b3
("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).
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/reloc.d | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/reloc.s | 9 |
3 files changed, 15 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1b98c81..c51332a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,11 @@ 2021-03-09 Jan Beulich <jbeulich@suse.com> + * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase + alignment to 4k. + * testsuite/ld-pe/reloc.d: xfail for mcore. + +2021-03-09 Jan Beulich <jbeulich@suse.com> + * testsuite/ld-scripts/alignof.exp, testsuite/ld-scripts/data.exp, testsuite/ld-scripts/default-script.exp, diff --git a/ld/testsuite/ld-pe/reloc.d b/ld/testsuite/ld-pe/reloc.d index 55888c3..eab8dfb 100644 --- a/ld/testsuite/ld-pe/reloc.d +++ b/ld/testsuite/ld-pe/reloc.d @@ -1,6 +1,7 @@ #name: PE base relocations #ld: --enable-reloc-section #objdump: -p +#xfail: mcore-*-* .*: file format .* diff --git a/ld/testsuite/ld-pe/reloc.s b/ld/testsuite/ld-pe/reloc.s index 3ed2e02..d1ea0a7 100644 --- a/ld/testsuite/ld-pe/reloc.s +++ b/ld/testsuite/ld-pe/reloc.s @@ -1,5 +1,12 @@ + .text + .global _start + .global _mainCRTStartup +_start: +_mainCRTStartup: + .byte 1 + .data - .p2align 4 + .p2align 12 start: .dc.a __image_base__ .dc.a start |