BFD and Elf Symbol Size

Ian Lance Taylor iant@google.com
Fri Oct 19 15:36:00 GMT 2007


"Robert Norton" <rnorton@broadcom.com> writes:

> Is there any way to get the size of an elf symbol via the BFD?

In general I would have to recommend against using BFD as a general
purpose library.

That said, sure, you can do anything.  In this case,

#include "elf-bfd.h"

and then

((elf_symbol_type *) symbol)->internal_elf_sym.st_size;

Ian



More information about the Binutils mailing list