Using linker script to mark .debug_frame allocatable
Daniel Jacobowitz
drow@false.org
Wed Jul 29 14:18:00 GMT 2009
On Wed, Jul 29, 2009 at 03:00:01PM +0100, Matt Fleming wrote:
> Hi,
>
> I've had a look through the ld manual but so far have been unable to
> find a way to mark the .debug_frame section of an ELF as allocatable. I
> want to do this is because I'm writing a DWARF unwinder in the Linux
> kernel. A DWARF unwinder is particularly useful for architectures, like
> SH, that can't unwind their stacks using only a frame pointer.
>
> Is it possible to do this with a linker script?
No, it has to be in the object files. Why not use .eh_frame instead?
--
Daniel Jacobowitz
CodeSourcery
More information about the Binutils
mailing list