bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/32271] strip leaves unused PT_LOAD segments


From: stsp at users dot sourceforge.net
Subject: [Bug binutils/32271] strip leaves unused PT_LOAD segments
Date: Thu, 17 Oct 2024 14:14:19 +0000

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

--- Comment #9 from Stas Sergeev <stsp at users dot sourceforge.net> ---
(In reply to Nick Clifton from comment #8)
> OK, so the -Ttext-segment sets the start address for the text segment
> and by default the other segments (rodata & data) are mapped to start
> after the end of the text segment.

Yes, that's quite obvious. :)
But:

> Notes are considered to be read only data so they will normally be
> put into the read only data segment, if one is being created, or the
> text segment otherwise.

And this is exactly not the case
here, which is why I asked for the
additional clarification:

   00     .note.gnu.property 
   01     .text 
   02     .bss 
   03     .note.gnu.property 
   04     .note.gnu.property 
   05

rodata is segment 03 here.
What makes me wonder is why -Ttext-segment
relocates segment 00, which is before .text?
Will this always be the case with the
further versions of binutils?

Also do you agree with my assumption
that unmapped segment may refer to an
invalid data?

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