[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in file bfd/elf.c, function elf_map_symbols()
From: |
Dietmar Petras |
Subject: |
Bug in file bfd/elf.c, function elf_map_symbols() |
Date: |
Sun, 5 Oct 2003 21:59:14 +0200 (MEST) |
I'm wondering about the following code segment in file bfd/elf.c, function
elf_map_symbols():
if (sec->output_offset != 0)
continue;
sec = sec->output_section;
/* Empty sections in the input files may have had a
section symbol created for them. (See the comment
near the end of _bfd_generic_link_output_symbols in
linker.c). If the linker script discards such
sections then we will reach this point. Since we know
that we cannot avoid this case, we detect it and skip
the abort and the assignment to the sect_syms array.
To reproduce this particular case try running the
linker testsuite test ld-scripts/weak.exp for an ELF
port that uses the generic linker. */
if (sec->owner == NULL)
continue;
The commands "if (sec->owner == NULL)" lead to a segmentation fault for
sure, since sec has been tested for NULL before.
Kind regards,
Dietmar
--
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
Jetzt kostenlos anmelden unter http://www.gmx.net
+++ GMX - die erste Adresse für Mail, Message, More! +++
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in file bfd/elf.c, function elf_map_symbols(),
Dietmar Petras <=