https://sourceware.org/bugzilla/show_bug.cgi?id=24493
Bug ID: 24493
Summary: objcopy produces .gnu_debuglink section with wrong
flags on MS-Windows
Product: binutils
Version: 2.32
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: eliz at gnu dot org
Target Milestone: ---
Bug 14527, https://sourceware.org/bugzilla/show_bug.cgi?id=14527, is against
MinGW GDB issuing a warning about lack of .gnu_debuglink section in the
separate debug files. However, it looks like the problem is actually in
Binutils, because the .gnu_debuglink section generated by objcopy on MS-Windows
has the wrong flags:
D:\usr\eli>objdump -h -j .gnu_debuglink hello.exe
hello.exe: file format pei-i386
Sections:
Idx Name Size VMA LMA File off Algn
8 .gnu_debuglink 00000200 00416000 00416000 00004c00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
By contrast, on GNU/Linux this section has only the CONTENTS and READONLY
flags. Removing the other flags, like this:
D:\usr\eli>objcopy --set-section-flags .gnu_debuglink=contents,readonly
hello.exe
makes the warning issued by GDB go away, while still allowing debugging with
full symbols.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils