[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: |
nickc at redhat dot com |
Subject: |
[Bug ld/30354] Debug info is lost for functions only called from functions marked with cmse_nonsecure_entry |
Date: |
Mon, 17 Apr 2023 14:04:35 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30354
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Torbjörn SVENSSON from comment #0)
Hi Torbjörn,
> Attached is a small demonstration of what's happening.
I may be mistaken here, but when an implib is being created, shouldn't the
binary file that is being created be linked as a shared library not a fully
linked executable ? This should stop the linker's garbage collection from even
running, so the problem should not arise ...
> The linker script in the attached example is the default one with one
> addition:
> .gnu.sgstubs : { *(.gnu.sgstubs*) }
> I suppose this is an overlook and that this section should be added to the
> default linker script for Arm targets in order to not force the user to
> define there own linker script.
Yes, that is an omission from the default scripts. I will fix it.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.