bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/30354] Debug info is lost for functions only called from functio


From: torbjorn.svensson at foss dot st.com
Subject: [Bug ld/30354] Debug info is lost for functions only called from functions marked with cmse_nonsecure_entry
Date: Wed, 03 May 2023 13:39:30 +0000

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

--- Comment #5 from Torbjörn SVENSSON <torbjorn.svensson at foss dot st.com> ---
(In reply to Nick Clifton from comment #4)
>   Please could you try out this patch and let me know if it works for you ?

I've played a bit with this patch now and indeed the debug symbols are
preserved, but the binary is also much smaller than before.

Just looking at the patch, I'm a bit confused about the variable
"extra_marks_added". The initial value is true, and in the function body, it's
set to true in certain cases, but it's never set to false and thus, the
if-statement at the end of the patch should always happen. Is this the desired
behavior?

I don't know if there has been any other cleanup lately in ld, but it looks
like the elf size is much smaller with ld from master than
5c0b4ee406035917d0e50aa138194fab57ae6bf8 that was used in the Arm GCC 11.3.rel1
release. Is it expected that the elf size for the demo application would drop
from ~203kB to ~31kB? Note that the size of text and data sections are still
the same.

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