[v1,1/1] ld: microblaze: ignore rwx segments

Message ID 20230928055737.2306715-1-neal.frager@amd.com
State Accepted, archived
Headers
Series [v1,1/1] ld: microblaze: ignore rwx segments |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_binutils_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_binutils_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 success Testing passed

Commit Message

Neal Frager Sept. 28, 2023, 5:57 a.m. UTC
  The linker will generate warnings if it is creating an executable
stack or a segment with all three read, write and execute permissions.
These settings are not appropriate for all targets including
MicroBlaze.

Signed-off-by: Neal Frager <neal.frager@amd.com>
---
 ld/configure.tgt | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Michael Eager Oct. 4, 2023, 3:39 p.m. UTC | #1
On 9/27/23 22:57, Neal Frager via Binutils wrote:
> The linker will generate warnings if it is creating an executable
> stack or a segment with all three read, write and execute permissions.
> These settings are not appropriate for all targets including
> MicroBlaze.
> 
> Signed-off-by: Neal Frager <neal.frager@amd.com>
> ---
>   ld/configure.tgt | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/ld/configure.tgt b/ld/configure.tgt
> index ff0aaaae257..3aa595ef130 100644
> --- a/ld/configure.tgt
> +++ b/ld/configure.tgt
> @@ -55,6 +55,7 @@ if test "${ac_default_ld_warn_rwx_segments}" = unset; then
>       cris-*-* | crisv32-*-* | \
>       hppa*-*-* | \
>       mips*-*-* | \
> +    microblaze*-*-* | \
>       sparc*-*-* | \
>       v850*-*-*)
>         ac_default_ld_warn_rwx_segments=0

Committed.
  

Patch

diff --git a/ld/configure.tgt b/ld/configure.tgt
index ff0aaaae257..3aa595ef130 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -55,6 +55,7 @@  if test "${ac_default_ld_warn_rwx_segments}" = unset; then
     cris-*-* | crisv32-*-* | \
     hppa*-*-* | \
     mips*-*-* | \
+    microblaze*-*-* | \
     sparc*-*-* | \
     v850*-*-*)
       ac_default_ld_warn_rwx_segments=0