[PATCH] ld/testsuite: add gnu property section in nto-stack-note*

Clément Chigot chigot@adacore.com
Mon Mar 17 09:00:37 GMT 2025


On Tue, Mar 11, 2025 at 9:17 AM Clément Chigot <chigot@adacore.com> wrote:
>
> A GNU property section is now always generated when `-z stack-size` is
> passed. This was probably introduced by GNU Property refactoring
> within elfxx-aarch64.c.

Merged as quite straightforward and no one complained.

> ---
>  ld/testsuite/ld-aarch64/nto-stack-note-1.d | 5 +++++
>  ld/testsuite/ld-aarch64/nto-stack-note-2.d | 5 +++++
>  2 files changed, 10 insertions(+)
>
> diff --git a/ld/testsuite/ld-aarch64/nto-stack-note-1.d b/ld/testsuite/ld-aarch64/nto-stack-note-1.d
> index d85dbcadb6b..e5f4742c533 100644
> --- a/ld/testsuite/ld-aarch64/nto-stack-note-1.d
> +++ b/ld/testsuite/ld-aarch64/nto-stack-note-1.d
> @@ -4,6 +4,11 @@
>  #ld: -z stack-size=0x10000
>  #readelf: -n
>
> +Displaying notes found in: .note.gnu.property
> +.*
> +.*
> +.*
> +
>  Displaying notes found in: .note
>  [      ]+Owner[        ]+Data size[    ]+Description
>    QNX                  0x0000000c      QNX stack
> diff --git a/ld/testsuite/ld-aarch64/nto-stack-note-2.d b/ld/testsuite/ld-aarch64/nto-stack-note-2.d
> index 9e446ccea5c..4c5bc257993 100644
> --- a/ld/testsuite/ld-aarch64/nto-stack-note-2.d
> +++ b/ld/testsuite/ld-aarch64/nto-stack-note-2.d
> @@ -4,6 +4,11 @@
>  #ld: -z stack-size=0x10000 --lazy-stack -z execstack
>  #readelf: -n
>
> +Displaying notes found in: .note.gnu.property
> +.*
> +.*
> +.*
> +
>  Displaying notes found in: .note
>  [      ]+Owner[        ]+Data size[    ]+Description
>    QNX                  0x0000000c      QNX stack
> --
> 2.34.1
>


More information about the Binutils mailing list