This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: BFD and Elf Symbol Size


"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


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