This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: BFD, alignment of common symbols
- To: mikulas at artax dot karlin dot mff dot cuni dot cz
- Subject: Re: BFD, alignment of common symbols
- From: Nick Clifton <nickc at redhat dot com>
- Date: Sat, 10 Feb 2001 12:39:23 -0800
- CC: binutils at sources dot redhat dot com
Hi Mikulas,
: If the symbol is in common section, asymbol->section == &bfd_com_section,
: asymbol->value contains the size of a symbol and ... where is the
: alignment?
First of all, this is only supported for ELF targets. Other file
formats do not support alignment of common symbols.
For ELF, the size of the symbol is placed in the 'size' field and the
alignment is placed in the 'value' field. Take a look at
elf_slurp_symbol_table() in bfd/elfcode.h for an example of this.
Cheers
Nick