diff options
author | Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> | 2016-05-03 10:44:35 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-05-03 10:44:35 +0100 |
commit | a2076b34e146a1f181ef58b5954815571fbcd6c6 (patch) | |
tree | 5c5042ccdef78b0f07be2a5ada328814a17ae847 /ld/testsuite/ld-elfcomm | |
parent | a4a1c15754d144d14dc48cd8ff62601f977e908c (diff) | |
download | gdb-a2076b34e146a1f181ef58b5954815571fbcd6c6.zip gdb-a2076b34e146a1f181ef58b5954815571fbcd6c6.tar.gz gdb-a2076b34e146a1f181ef58b5954815571fbcd6c6.tar.bz2 |
Skip ELF STT_COMMON linker tests if shared libraries are not supported.
* testsuite/ld-elfcomm/elfcomm.exp: Check for shared lib support
before running STT_COMMON tests.
Diffstat (limited to 'ld/testsuite/ld-elfcomm')
-rw-r--r-- | ld/testsuite/ld-elfcomm/elfcomm.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfcomm/elfcomm.exp b/ld/testsuite/ld-elfcomm/elfcomm.exp index 926b98c..fd32e02 100644 --- a/ld/testsuite/ld-elfcomm/elfcomm.exp +++ b/ld/testsuite/ld-elfcomm/elfcomm.exp @@ -246,6 +246,14 @@ if { [dump_common1 $test1c2] } { # # The following tests are for when we are generating STT_COMMON symbols only. # +# Handling of -z common and -z nocommon flags is enabled only if +# $GENERATE_SHLIB_SCRIPT is turned on in emulparams i.e. shared +# libraries are supported. + +if ![check_shared_lib_support] { + return +} + stt_common_test "-static -e 0" "static link of common symbols" stt_common_test "-shared" "shared link of common symbols" stt_common_test "-pie" "position independent link of common symbols" |