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

Message ID 20250311081756.393712-1-chigot@adacore.com
State New
Headers
Series 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

Clément Chigot March 11, 2025, 8:17 a.m. UTC
  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

Clément Chigot March 17, 2025, 9 a.m. UTC | #1
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
>
  

Patch

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