diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-09-22 06:58:48 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-09-22 07:05:53 -0700 |
commit | be2b629f6427812a24f38802ba1c472a2cbfab7d (patch) | |
tree | 7be1c2748f6589793b9707958d5db7e34f3f0ff5 /ld/testsuite/ld-elf/shared.exp | |
parent | b877d21f34211915953487d68a07697f4cb4f771 (diff) | |
download | gdb-be2b629f6427812a24f38802ba1c472a2cbfab7d.zip gdb-be2b629f6427812a24f38802ba1c472a2cbfab7d.tar.gz gdb-be2b629f6427812a24f38802ba1c472a2cbfab7d.tar.bz2 |
Add a test for PR ld/22150
PR ld/22150
* testsuite/ld-elf/pr22150.vd: New file.
* testsuite/ld-elf/pr22150.ver: Likewise.
* testsuite/ld-elf/pr22150a.s: Likewise.
* testsuite/ld-elf/pr22150b.s: Likewise.
* testsuite/ld-elf/shared.exp: Run PR ld/22150 tests.
Diffstat (limited to 'ld/testsuite/ld-elf/shared.exp')
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index eee7377..2bb0750 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -170,6 +170,29 @@ if { [check_gc_sections_available] } { "pr21233-3"]] } +if { [check_gc_sections_available] } { + run_ld_link_tests [list \ + [list \ + "Build pr22150.so" \ + "$LFLAGS -shared --version-script pr22150.ver" \ + "" \ + "$AFLAGS_PIC" \ + {pr22150a.s} \ + {} \ + "pr22150.so" \ + ] \ + [list \ + "Build pr22150" \ + "$LFLAGS -e _start --gc-sections" \ + "tmpdir/pr22150.so" \ + "" \ + {pr22150b.s} \ + {{readelf -V pr22150.vd}} \ + "pr22150" \ + ] \ + ] +} + # Check to see if the C compiler works if { [which $CC] == 0 } { return |