bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/24493] objcopy produces .gnu_debuglink section with wrong


From: eliz at gnu dot org
Subject: [Bug binutils/24493] objcopy produces .gnu_debuglink section with wrong flags on MS-Windows
Date: Tue, 30 Apr 2019 16:36:32 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24493

--- Comment #5 from Eli Zaretskii <eliz at gnu dot org> ---
(In reply to Nick Clifton from comment #4)
> Hi Eli,
> 
> > Just so I understand: do you want me to build GDB with this change or
> > Binutils?
> 
> Both.  The problem - if I have understood it correctly - is that when
> the BFD library reads in the PE format file containing the .gnu.debuglink
> section it does not set up the correct set of section flags.  The affects
> both GDB and objcopy, both of which use the BFD library to read in the file.

For now, I rebuilt only Binutils 2.32 with the patch.  The patch seems to be
working, in the sense that the section flags are now different:

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 00000014  00416000  00416000  00004c00  2**2
                  CONTENTS, READONLY, DEBUGGING

Is this DEBUGGING flag expected to be there?  Because with it, stock GDB 8.2
still emits the warning; removing the flag also removes teh warning, as before.
 This flag is not shown on GNU/Linux, as I reported above.

I will rebuild GDB tomorrow and wee if that fixes the problem.

> PS.  If the patch does not work, would you mind uploading a PE format
> file containing a .gnu.debuglink section, so that I can investigate further ?

Will do if the problem remains after rebuilding GDB.

Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]