[PATCH 2/2] sframe: Add -nostdlib when testing PR 32789

Indu Bhagat indu.bhagat@oracle.com
Wed Jan 21 06:39:39 GMT 2026


On 1/20/26 6:53 AM, claudiu.zissulescu-ianculescu@oracle.com wrote:
> From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
> 
> As a result of the mail exchange in
> https://sourceware.org/pipermail/binutils/2026-January/147439.html,
> the run_cc_link_test procedure may want to link standard libs
> too. However, this is not required for running PR 32789 tests. Add
> -nostdlib option.
> 
> ld/
> 
> 	* testsuite/ld-sframe/sframe.exp: Add nostdlib when testing PR
> 	32789.
> 

LGTM, Thanks.

> Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
> ---
>   ld/testsuite/ld-sframe/sframe.exp | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ld/testsuite/ld-sframe/sframe.exp b/ld/testsuite/ld-sframe/sframe.exp
> index 9059955a923..8966c20ddc9 100644
> --- a/ld/testsuite/ld-sframe/sframe.exp
> +++ b/ld/testsuite/ld-sframe/sframe.exp
> @@ -169,7 +169,7 @@ if { [check_compiler_available] } {
>       run_cc_link_tests [list \
>   	[list \
>   	    "Build pr32789-1a.o pr32789-1b.o" \
> -	    "-r" \
> +	    "-r -nostdlib" \
>   	    "-Wa,--gsframe" \
>   	    { pr32789-1a.c pr32789-1b.c } \
>   	    {{readelf --sframe pr32789-1.sd}



More information about the Binutils mailing list