[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selective linking in ld
From: |
Alan Modra |
Subject: |
Re: Selective linking in ld |
Date: |
Tue, 23 Apr 2002 23:18:23 +0930 |
User-agent: |
Mutt/1.3.25i |
On Tue, Apr 23, 2002 at 03:09:33PM +0200, address@hidden wrote:
>
> The problem is that after link the .text_func1 section has been correctly
> removed, but the reference from the (debug) section .debug_frame to 'func1'
> has
> the value 0x00000004, corresponding to the offset of the label func1 in the
> section. I would much have preferred the value 0x00000000, so it was easy to
> determine inside the debug section that the value is void.
Upgrade binutils. After fixing a small typo in your example (you
want .section <name>,"ax"), the output was
Contents of section .text:
10000 48000009 48000005 60000000 H...H...`...
Contents of section .data:
Contents of section .got:
Contents of section .sdata:
Contents of section .sdata2:
Contents of section .sbss:
Contents of section .bss:
Contents of section .debug_frame:
0000 000000ab 00000000 00010008 000000cd ................
--
Alan Modra
IBM OzLabs - Linux Technology Centre