aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/x86-64.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-01-09 06:11:06 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-01-09 06:13:11 -0800
commit0a94990bf64a82bdf73960fec1b47fef7c6a6ced (patch)
tree739ccefb6a395a463262da661010b90716fe9ccc /ld/testsuite/ld-x86-64/x86-64.exp
parentf41464416a1744ca0151d61de1a7e405664dd9b7 (diff)
downloadgdb-0a94990bf64a82bdf73960fec1b47fef7c6a6ced.zip
gdb-0a94990bf64a82bdf73960fec1b47fef7c6a6ced.tar.gz
gdb-0a94990bf64a82bdf73960fec1b47fef7c6a6ced.tar.bz2
ld/x86-64: Properly Handle -z lam-u48/lam-u57
Properly merge GNU properties for LAM_U48 and LAM_U57. bfd/ PR ld/27166 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle -z lam-u48 and -z lam-u57. ld/ PR ld/27166 * testsuite/ld-x86-64/lam-u48.rd: New file. * testsuite/ld-x86-64/lam-u57.rd: Likewise. * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
Diffstat (limited to 'ld/testsuite/ld-x86-64/x86-64.exp')
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 37a2e50..83fdaa7 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -1452,6 +1452,22 @@ if { [isnative] && [check_compiler_available] } {
{{error_output "pr21997-1b.err"}} \
"pr21997-1b" \
] \
+ [list \
+ "Build lam-u48.so" \
+ "-shared -Wl,-z,lam-u48" \
+ "" \
+ {dummy.s} \
+ {{readelf -n lam-u48.rd}} \
+ "lam-u48.so" \
+ ] \
+ [list \
+ "Build lam-u57.so" \
+ "-shared -Wl,-z,lam-u57" \
+ "" \
+ {dummy.s} \
+ {{readelf -n lam-u57.rd}} \
+ "lam-u57.so" \
+ ] \
]
}