diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2008-02-17 13:21:20 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2008-02-17 13:21:20 +0000 |
commit | 3f001e8487ff63ab90221ef80344604e806ec193 (patch) | |
tree | b0fd9a53ec7b18b59bfe2645e4d3db69fd0bace3 /bfd/elf.c | |
parent | 1fed0ba155aff29779a9746bd789c6d769c2b1fe (diff) | |
download | gdb-3f001e8487ff63ab90221ef80344604e806ec193.zip gdb-3f001e8487ff63ab90221ef80344604e806ec193.tar.gz gdb-3f001e8487ff63ab90221ef80344604e806ec193.tar.bz2 |
* elf.c (assign_file_positions_for_load_sections): Set the type of
PT_NOTE sections to SHT_NOTE.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |