This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
BFD, alignment of common symbols
- To: binutils at sources dot redhat dot com
- Subject: BFD, alignment of common symbols
- From: Mikulas Patocka <mikulas at artax dot karlin dot mff dot cuni dot cz>
- Date: Sat, 10 Feb 2001 16:06:54 +0100 (CET)
Hi.
I'm reading and processing object files using BFD library.
I read symbols of a file using bfd_canonicalize_symtab. It returns array
of asymbols.
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?
If the code contains something like
char c[5] __attribute__((aligned(32)));
how can I gen an alignment of that symbol?
Mikulas