From 2053e2d6e47336f52d66ca3a45e0044e653299c3 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Fri, 17 Jan 2003 20:55:09 +0000 Subject: Update comment for linker change which just committed. --- gnu/usr.bin/binutils/bfd/elf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gnu/usr.bin/binutils') 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"); -- cgit v1.2.3