public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Regenerate gas/config.in and ld/configure
@ 2023-11-12 17:11 Mark Wielaard
  2023-11-12 17:21 ` Mark Wielaard
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2023-11-12 17:11 UTC (permalink / raw)
  To: gdb-patches; +Cc: Martin Jambor, Mark Wielaard

commit d173146d9 "MIPS: Change all E_MIPS_* to EF_MIPS_*"
changed gas/config.in to rename USE_E_MIPS_ABI_O32 to USE_EF_MIPS_ABI_O32
this new name sorts differently when regenerating gas/config.in

commit e922d1eaa "Add ability to change linker warning messages into
errors when reporting executable stacks and/or executable segments."
Introduced two new help strings for --enable-error-execstack and
--enable-error-rwx-segments in configure.ac which weren't included
in ld/configure when regenerated.

	* gas/config.in: Regenerate.
	* ld/configure: Likewise.
---

Martin Jambor has a script from Martin Liska which can regenerate
and check auto* files are properly created with the intended autoconf
and automake version for gcc. We adapted it to binutils and added
a buildbot to use the script to check the binutils-gdb git repo.
It found these two small discrepancies. OK to push?

https://inbox.sourceware.org/gcc/20231108233059.GA31613@gnu.wildebeest.org/T/
https://inbox.sourceware.org/buildbot/ZVECB_5PCtf2FW4R@elastic.org/T/

 gas/config.in | 6 +++---
 ld/configure  | 8 ++++++--
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/gas/config.in b/gas/config.in
index ea21757f6a7..6333a964c71 100644
--- a/gas/config.in
+++ b/gas/config.in
@@ -261,12 +261,12 @@
 /* Use b modifier when opening binary files? */
 #undef USE_BINARY_FOPEN
 
-/* Use emulation support? */
-#undef USE_EMULATIONS
-
 /* Allow use of EF_MIPS_ABI_O32 on MIPS targets. */
 #undef USE_EF_MIPS_ABI_O32
 
+/* Use emulation support? */
+#undef USE_EMULATIONS
+
 /* Enable extensions on AIX 3, Interix.  */
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
diff --git a/ld/configure b/ld/configure
index 468c3bd525d..46d9f3c7111 100755
--- a/ld/configure
+++ b/ld/configure
@@ -1536,9 +1536,13 @@ Optional Features:
                           enable DT_TEXTREL check in ELF linker
   --enable-separate-code  enable -z separate-code in ELF linker by default
   --enable-warn-execstack enable warnings when creating an executable stack
+  --enable-error-execstack
+                          turn executable stack warnings into errors
   --enable-warn-rwx-segments
                           enable warnings when creating segments with RWX
                           permissions
+  --enable-error-rwx-segments
+                          turn executable segment warnings into errors
   --enable-default-execstack
                           create an executable stack if an input file is
                           missing a .note.GNU-stack section
@@ -11657,7 +11661,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11658 "configure"
+#line 11664 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11763,7 +11767,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11764 "configure"
+#line 11770 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
-- 
2.39.3


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Regenerate gas/config.in and ld/configure
  2023-11-12 17:11 [PATCH] Regenerate gas/config.in and ld/configure Mark Wielaard
@ 2023-11-12 17:21 ` Mark Wielaard
  2023-11-13 16:07   ` Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2023-11-12 17:21 UTC (permalink / raw)
  To: gdb-patches, binutils; +Cc: Martin Jambor, nickc

Apologies, the below should of course have gone to binutils not
gdb-patches. The script runs for the whole binutils-gdb git repo
though.

On Sun, Nov 12, 2023 at 06:11:38PM +0100, Mark Wielaard wrote:
> commit d173146d9 "MIPS: Change all E_MIPS_* to EF_MIPS_*"
> changed gas/config.in to rename USE_E_MIPS_ABI_O32 to USE_EF_MIPS_ABI_O32
> this new name sorts differently when regenerating gas/config.in
> 
> commit e922d1eaa "Add ability to change linker warning messages into
> errors when reporting executable stacks and/or executable segments."
> Introduced two new help strings for --enable-error-execstack and
> --enable-error-rwx-segments in configure.ac which weren't included
> in ld/configure when regenerated.
> 
> 	* gas/config.in: Regenerate.
> 	* ld/configure: Likewise.
> ---
> 
> Martin Jambor has a script from Martin Liska which can regenerate
> and check auto* files are properly created with the intended autoconf
> and automake version for gcc. We adapted it to binutils and added
> a buildbot to use the script to check the binutils-gdb git repo.
> It found these two small discrepancies. OK to push?
> 
> https://inbox.sourceware.org/gcc/20231108233059.GA31613@gnu.wildebeest.org/T/
> https://inbox.sourceware.org/buildbot/ZVECB_5PCtf2FW4R@elastic.org/T/
> 
>  gas/config.in | 6 +++---
>  ld/configure  | 8 ++++++--
>  2 files changed, 9 insertions(+), 5 deletions(-)
> 
> diff --git a/gas/config.in b/gas/config.in
> index ea21757f6a7..6333a964c71 100644
> --- a/gas/config.in
> +++ b/gas/config.in
> @@ -261,12 +261,12 @@
>  /* Use b modifier when opening binary files? */
>  #undef USE_BINARY_FOPEN
>  
> -/* Use emulation support? */
> -#undef USE_EMULATIONS
> -
>  /* Allow use of EF_MIPS_ABI_O32 on MIPS targets. */
>  #undef USE_EF_MIPS_ABI_O32
>  
> +/* Use emulation support? */
> +#undef USE_EMULATIONS
> +
>  /* Enable extensions on AIX 3, Interix.  */
>  #ifndef _ALL_SOURCE
>  # undef _ALL_SOURCE
> diff --git a/ld/configure b/ld/configure
> index 468c3bd525d..46d9f3c7111 100755
> --- a/ld/configure
> +++ b/ld/configure
> @@ -1536,9 +1536,13 @@ Optional Features:
>                            enable DT_TEXTREL check in ELF linker
>    --enable-separate-code  enable -z separate-code in ELF linker by default
>    --enable-warn-execstack enable warnings when creating an executable stack
> +  --enable-error-execstack
> +                          turn executable stack warnings into errors
>    --enable-warn-rwx-segments
>                            enable warnings when creating segments with RWX
>                            permissions
> +  --enable-error-rwx-segments
> +                          turn executable segment warnings into errors
>    --enable-default-execstack
>                            create an executable stack if an input file is
>                            missing a .note.GNU-stack section
> @@ -11657,7 +11661,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 11658 "configure"
> +#line 11664 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> @@ -11763,7 +11767,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 11764 "configure"
> +#line 11770 "configure"
>  #include "confdefs.h"
>  
>  #if HAVE_DLFCN_H
> -- 
> 2.39.3
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Regenerate gas/config.in and ld/configure
  2023-11-12 17:21 ` Mark Wielaard
@ 2023-11-13 16:07   ` Nick Clifton
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2023-11-13 16:07 UTC (permalink / raw)
  To: Mark Wielaard, gdb-patches, binutils; +Cc: Martin Jambor

Hi Mark,

>> Martin Jambor has a script from Martin Liska which can regenerate
>> and check auto* files are properly created with the intended autoconf
>> and automake version for gcc. We adapted it to binutils and added
>> a buildbot to use the script to check the binutils-gdb git repo.
>> It found these two small discrepancies. OK to push?

Yes please do.

Cheers
   Nick



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-13 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-12 17:11 [PATCH] Regenerate gas/config.in and ld/configure Mark Wielaard
2023-11-12 17:21 ` Mark Wielaard
2023-11-13 16:07   ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).