BFD, alignment of common symbols

Mikulas Patocka mikulas@artax.karlin.mff.cuni.cz
Sat Feb 10 07:07:00 GMT 2001


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



More information about the Binutils mailing list