This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

BFD, alignment of common symbols


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]