mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
ld/x86: skip p_align-1 tests with unsuitable compiler
When the compiler doesn't properly arrange for foo's alignment, there's no point even trying these tests. Report the situation as a single "unsupported" test.
This commit is contained in:
@ -185,6 +185,13 @@ run_ld_link_exec_tests [list \
|
||||
"" \
|
||||
"tmpdir/indirect-extern-access-2.so" \
|
||||
] \
|
||||
]
|
||||
|
||||
# Old gcc silently ignores __attribute__ ((aligned())) with too big alignment.
|
||||
ld_compile $CC_FOR_TARGET $srcdir/$subdir/p_align-1.c tmpdir/p_align-1.o
|
||||
set output [run_host_cmd "$READELF" "-SW tmpdir/p_align-1.o"]
|
||||
if { [regexp { [.]data *PROGBITS .* 8388608[\n]} $output] } then {
|
||||
run_ld_link_exec_tests [list \
|
||||
[list \
|
||||
"Run p_align-1a without PIE" \
|
||||
"$NOPIE_LDFLAGS" \
|
||||
@ -222,6 +229,9 @@ run_ld_link_exec_tests [list \
|
||||
"-fpie" \
|
||||
] \
|
||||
]
|
||||
} else {
|
||||
unsupported "p_align-1"
|
||||
}
|
||||
|
||||
proc elfedit_test { options test output } {
|
||||
global ELFEDIT
|
||||
|
Reference in New Issue
Block a user