This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: portable method to add a new output section?
On 02/01/08 09:28:00, Gary Funck wrote:
>
> SECTIONS {
> .upc_shared 0x10000 (NOLOAD) : ALIGN(64) { *(upc_shared) }
> }
Follow up question. I notice this section
ends up with the following attributes in the final
executable:
Idx Name Size VMA LMA File off Algn
0 .upc_shared 00000054 0000000000010000 0000000000010000 00010000 2**6
ALLOC
And objdump confirms there's no data in that section:
% objdump -j.upc_shared -s a.out
a.out: file format elf64-x86-64
There is no CONTENTS attribute in spite of the fact that the
generated assembly langyage is staticly initializing values
in that section. For comparison,
29 .debug_info 000078c9 0000000000000000 0000000000000000 0000d114 2**0
CONTENTS, READONLY, DEBUGGING
This isn't an issue for me, but I was curious as to why
the initialzed data doesn't make it into the section.