diff options
author | 2003-01-17 20:55:08 +0000 | |
---|---|---|
committer | 2003-01-17 20:55:08 +0000 | |
commit | 05ed7df857b7f8053ca0ed5c83cce5946d5186a6 (patch) | |
tree | 196765ba74dc96d2eb938b0f94fa30b272e68777 | |
parent | This is a project to modify executables so that they do not have any (diff) | |
download | wireguard-openbsd-05ed7df857b7f8053ca0ed5c83cce5946d5186a6.tar.xz wireguard-openbsd-05ed7df857b7f8053ca0ed5c83cce5946d5186a6.zip |
Update comment for linker change which just committed.
-rw-r--r-- | gnu/usr.bin/binutils/bfd/elf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/bfd/elf.c b/gnu/usr.bin/binutils/bfd/elf.c index 7b1964a7023..b39fbe4d505 100644 --- a/gnu/usr.bin/binutils/bfd/elf.c +++ b/gnu/usr.bin/binutils/bfd/elf.c @@ -3098,8 +3098,11 @@ get_program_header_size (abfd) return elf_tdata (abfd)->program_header_size; } - /* Assume we will need exactly two PT_LOAD segments: one for text - and one for data. */ + /* 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 */ segs = 6; s = bfd_get_section_by_name (abfd, ".interp"); |