ld/testsuite: add gnu property section in nto-stack-note*
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_binutils_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_binutils_check--master-arm |
success
|
Test passed
|
Commit Message
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.
---
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(+)
Comments
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
>
@@ -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
@@ -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