aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog8
-rw-r--r--bfd/elflink.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 957d8fd..5444381 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
+2022-04-25 Nick Clifton <nickc@redhat.com>
+
+ PR 29072
+ * elflink.c (bfd_elf_size_dynamic_sections): Display a note to the
+ user that the current ehaviour of creating an executable stack
+ because of a missing .note.GNU-stack section is deprecated and
+ will be changed in a future release.
+
2022-04-20 Clément Chigot <clement.chigot@atos.net>
* coff-rs6000.c (xcoff_reloc_type_noop): Add info argument.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index d6dd9c1..b54ee51 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -7190,9 +7190,13 @@ warning: enabling an executable stack because of -z execstack command line optio
warning: %s: requires executable stack (because the .note.GNU-stack section is executable)"),
bfd_get_filename (noteobj));
else if (emptyobj)
- _bfd_error_handler (_("\
+ {
+ _bfd_error_handler (_("\
warning: %s: missing .note.GNU-stack section implies executable stack"),
- bfd_get_filename (emptyobj));
+ bfd_get_filename (emptyobj));
+ _bfd_error_handler (_("\
+NOTE: This behaviour is deprecated and will be removed in a future version of the linker"));
+ }
}
}
elf_stack_flags (output_bfd) = PF_R | PF_W | exec;