From 3f001e8487ff63ab90221ef80344604e806ec193 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 17 Feb 2008 13:21:20 +0000 Subject: * elf.c (assign_file_positions_for_load_sections): Set the type of PT_NOTE sections to SHT_NOTE. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a9ffccf..086b4b1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-02-17 Jan Kratochvil + + * elf.c (assign_file_positions_for_load_sections): Set the type of + PT_NOTE sections to SHT_NOTE. + 2008-02-17 Ulrich Weigand * simple.c (bfd_simple_get_relocated_section_contents): Set diff --git a/bfd/elf.c b/bfd/elf.c index 192e0cc..cce7163 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -4284,6 +4284,10 @@ assign_file_positions_for_load_sections (bfd *abfd, bfd_set_error (bfd_error_bad_value); return FALSE; } + /* Set the note section type to SHT_NOTE. */ + else if (p->p_type == PT_NOTE) + for (i = 0; i < m->count; i++) + elf_section_type (m->sections[i]) = SHT_NOTE; p->p_offset = 0; p->p_filesz = 0; -- cgit v1.1