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: Wed, 01 May 2019 17:41:54 +0000

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

--- Comment #6 from Eli Zaretskii <eliz at gnu dot org> ---
(In reply to Eli Zaretskii from comment #5)

> 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.

Rebuilding GDB seems to fix the problem.  But a strange thing is that the
rebuilt objdump shows the above 3 flags even for .gnu_debuglink section created
by the unpatched objcopy.  Is that expected?  I thought the section flags were
actually recorded in the file, and objdump only displays them, but it seems
this is not the case with the patched Binutils.  Or am I confused?

-- 
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]