summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2003-01-30 21:10:51 +0000
committerdrahn <drahn@openbsd.org>2003-01-30 21:10:51 +0000
commitb7f0bb60b6b7e70d0799eb5cc1bb793ea4b03540 (patch)
tree9a316ab19d8d6a726a8548e9f69fd6b6ab8396cc
parentELF security enhancement: put .rodata into it's own load section instead (diff)
downloadwireguard-openbsd-b7f0bb60b6b7e70d0799eb5cc1bb793ea4b03540.tar.xz
wireguard-openbsd-b7f0bb60b6b7e70d0799eb5cc1bb793ea4b03540.zip
Again this comment was not updated. now we have 7 load sections.
-rw-r--r--gnu/usr.bin/binutils/bfd/elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/bfd/elf.c b/gnu/usr.bin/binutils/bfd/elf.c
index a9daa8b88c0..d5c4124e72e 100644
--- a/gnu/usr.bin/binutils/bfd/elf.c
+++ b/gnu/usr.bin/binutils/bfd/elf.c
@@ -3100,9 +3100,9 @@ get_program_header_size (abfd)
/* We used to assume that two PT_LOAD segments would be enough,
code and data, with the change to pad the PLT and GOT, this is no
- longer true. Now there can be several PT_LOAD sections. 6 seems
- to be enough with BSS_PLT, where we have text, data, GOT, dynamic,
- PLT, bss */
+ longer true. Now there can be several PT_LOAD sections. 7 seems
+ to be enough with BSS_PLT and .rodata-X, where we have text, data,
+ GOT, dynamic, PLT, bss */
segs = 7;
s = bfd_get_section_by_name (abfd, ".interp");