2009-12-03 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for all sections of the __DWARF segment.
This commit is contained in:
parent
f9f0e73285
commit
ef17cb22d0
|
@ -1,3 +1,8 @@
|
|||
2009-12-03 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for
|
||||
all sections of the __DWARF segment.
|
||||
|
||||
2009-12-03 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
PR ld/11047
|
||||
|
|
|
@ -1480,8 +1480,13 @@ bfd_mach_o_make_bfd_section (bfd *abfd, bfd_mach_o_section *section,
|
|||
if (sname == NULL)
|
||||
return NULL;
|
||||
|
||||
if (section->flags & BFD_MACH_O_S_ATTR_DEBUG)
|
||||
if ((section->flags & BFD_MACH_O_S_ATTR_DEBUG)
|
||||
|| !strcmp (section->segname, "__DWARF"))
|
||||
{
|
||||
/* Force flags for dwarf sections. This looks weird but dsym files
|
||||
have no flags for them and this is important for gdb. */
|
||||
flags = SEC_HAS_CONTENTS | SEC_DEBUGGING;
|
||||
}
|
||||
else
|
||||
{
|
||||
flags = SEC_ALLOC;
|
||||
|
|
Loading…
Reference in New Issue