diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-04-18 11:23:09 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-04-18 11:23:09 -0700 |
commit | 54975ae91f6645bea4b57038e7b812cb9ceade29 (patch) | |
tree | b213d38e6cd9ac85f519408e8165fd9c359abdee /ld/testsuite | |
parent | 08feed99cbcc75ecdd111f7a10c163b6f99c428f (diff) | |
download | gdb-54975ae91f6645bea4b57038e7b812cb9ceade29.zip gdb-54975ae91f6645bea4b57038e7b812cb9ceade29.tar.gz gdb-54975ae91f6645bea4b57038e7b812cb9ceade29.tar.bz2 |
elf: Don't use .set for alpha target
Since the .set directive of ELF/alpha target is different, define NO_SET
to 1 to use "=" for ELF/alpha target.
* testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
alpha target.
* testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr19789.s | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 7b8e8f6..096b8af 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -43,6 +43,7 @@ if { [istarget alpha*-*-* ] } { # executable down into the low address space to match. # ??? How can we adjust just the one testcase? set LDFLAGS "$LDFLAGS -Ttext-segment 0x1000000" + set ASFLAGS "$ASFLAGS --defsym NO_SET=1" } if { [istarget "*-*-nacl*"] } { diff --git a/ld/testsuite/ld-elf/pr19789.s b/ld/testsuite/ld-elf/pr19789.s index 31be1b0..3655d08 100644 --- a/ld/testsuite/ld-elf/pr19789.s +++ b/ld/testsuite/ld-elf/pr19789.s @@ -4,6 +4,10 @@ __foo: .byte 0 .globl __foo1 + .ifdef NO_SET + __foo1 = __foo + .else .set __foo1, __foo + .endif .symver __foo,foo@@VERS.2 .symver __foo1,foo@VERS.1 |