This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ia64 exec stack (Was: Re: ppc64 exec stack)
Andreas Schwab <schwab@suse.de> writes:
> Alan Modra <amodra@bigpond.net.au> writes:
>
>> I think that for ppc64 it would make more sense to assume that a file
>> without the .note.GNU-stack marker is non-exec stack. This will allow
>> mixing of Redhat object files with mainline gcc, and is in fact the
>> correct default for ppc64.
>
> IMHO that would also make sense on ia64, which is non-exec stack by
> default as well.
This has been tested on ia64-suse-linux.
Andreas.
2007-02-19 Andreas Schwab <schwab@suse.de>
* elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
--- bfd/elfxx-ia64.c.~1.193.~ 2006-11-03 11:13:00.000000000 +0100
+++ bfd/elfxx-ia64.c 2007-02-19 15:42:51.000000000 +0100
@@ -5801,6 +5801,7 @@ elfNN_hpux_backend_symbol_processing (bf
#define elf_backend_reloc_type_class elfNN_ia64_reloc_type_class
#define elf_backend_rela_normal 1
#define elf_backend_special_sections elfNN_ia64_special_sections
+#define elf_backend_default_execstack 0
/* FIXME: PR 290: The Intel C compiler generates SHT_IA_64_UNWIND with
SHF_LINK_ORDER. But it doesn't set the sh_link or sh_info fields.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."