[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24493] New: objcopy produces .gnu_debuglink section with w
From: |
eliz at gnu dot org |
Subject: |
[Bug binutils/24493] New: objcopy produces .gnu_debuglink section with wrong flags on MS-Windows |
Date: |
Sat, 27 Apr 2019 15:34:02 +0000 |
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/24493] New: objcopy produces .gnu_debuglink section with wrong flags on MS-Windows,
eliz at gnu dot org <=
- [Bug binutils/24493] objcopy produces .gnu_debuglink section with wrong flags on MS-Windows, ssbssa at yahoo dot de, 2019/04/27
- [Bug binutils/24493] objcopy produces .gnu_debuglink section with wrong flags on MS-Windows, nickc at redhat dot com, 2019/04/29
- [Bug binutils/24493] objcopy produces .gnu_debuglink section with wrong flags on MS-Windows, tromey at sourceware dot org, 2019/04/29
- [Bug binutils/24493] objcopy produces .gnu_debuglink section with wrong flags on MS-Windows, eliz at gnu dot org, 2019/04/29
- [Bug binutils/24493] objcopy produces .gnu_debuglink section with wrong flags on MS-Windows, nickc at redhat dot com, 2019/04/30
- [Bug binutils/24493] objcopy produces .gnu_debuglink section with wrong flags on MS-Windows, eliz at gnu dot org, 2019/04/30