aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-11-30 13:10:35 +1030
committerAlan Modra <amodra@gmail.com>2017-11-30 13:16:35 +1030
commit668247656d5dec815a57761e98720dda09f72481 (patch)
tree903597d14d854f0538b55b6da692f5d2c37b1dd5 /ld/testsuite/ld-elf
parent7505954411a168f5c5b9adec23eac55b1532fbe6 (diff)
downloadgdb-668247656d5dec815a57761e98720dda09f72481.zip
gdb-668247656d5dec815a57761e98720dda09f72481.tar.gz
gdb-668247656d5dec815a57761e98720dda09f72481.tar.bz2
Fix testcase for PR ld/22471
ASFLAGS should be restored after any modification. Fixes metag-linux +FAIL: Long branch stub metag-linux +FAIL: Long branch stub (PIC, app) mn10300-elf +FAIL: difference of two same-section symbols where the difference is held in another section mn10300-elf +FAIL: relaxation and alignment directives PR 22471 * testsuite/ld-elf/shared.exp: Save and restore ASFLAGS.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/shared.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 7514eb1..99c34be 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -34,6 +34,8 @@ if ![check_shared_lib_support] {
# Add $NOPIE_CFLAGS and $NOPIE_LDFLAGS if non-PIE is required.
global NOPIE_CFLAGS NOPIE_LDFLAGS
+set old_ASFLAGS $ASFLAGS
+
# This target requires extra GAS options when building code for shared
# libraries.
set AFLAGS_PIC ""
@@ -221,6 +223,8 @@ if { [check_gc_sections_available] } {
]
}
+set ASFLAGS $old_ASFLAGS
+
# Check to see if the C compiler works
if { [which $CC] == 0 } {
return