mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
dt-relr.exp --no-as-needed
Otherwise the very simple test may not be linked with libc.so at all, and thus correctly have no version reference added. Causing failure of the dt-relr-glibc-1b.so test. * testsuite/ld-elf/dt-relr.exp: Link with --no-as-needed.
This commit is contained in:
@ -26,7 +26,7 @@ if { ![supports_dt_relr] } {
|
|||||||
run_cc_link_tests [list \
|
run_cc_link_tests [list \
|
||||||
[list \
|
[list \
|
||||||
"Build dt-relr-glibc-1a.so" \
|
"Build dt-relr-glibc-1a.so" \
|
||||||
"-shared $NO_DT_RELR_CC_LDFLAGS" \
|
"-shared -Wl,--no-as-needed $NO_DT_RELR_CC_LDFLAGS" \
|
||||||
"-fPIC" \
|
"-fPIC" \
|
||||||
{ dt-relr-glibc-1.c } \
|
{ dt-relr-glibc-1.c } \
|
||||||
{{readelf {--version-info} dt-relr-glibc-1a.rd}} \
|
{{readelf {--version-info} dt-relr-glibc-1a.rd}} \
|
||||||
@ -34,7 +34,7 @@ run_cc_link_tests [list \
|
|||||||
] \
|
] \
|
||||||
[list \
|
[list \
|
||||||
"Build dt-relr-glibc-1b.so" \
|
"Build dt-relr-glibc-1b.so" \
|
||||||
"-shared $DT_RELR_CC_LDFLAGS" \
|
"-shared -Wl,--no-as-needed $DT_RELR_CC_LDFLAGS" \
|
||||||
"-fPIC" \
|
"-fPIC" \
|
||||||
{ dt-relr-glibc-1.c } \
|
{ dt-relr-glibc-1.c } \
|
||||||
{{readelf {-W --version-info} dt-relr-glibc-1b.rd}} \
|
{{readelf {-W --version-info} dt-relr-glibc-1b.rd}} \
|
||||||
|
Reference in New Issue
Block a user