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]
Other format: [Raw text]

Re: ld dropped functions list


jgrant@reflectionsinteractive.com writes:

> I would like to generate a list of functions which were compiled in
> objects but not transferred into the linked ELF.  Is there a way ld
> can generate a list of functions which were not included in the
> final elf please?  (I looked but could not see this functionality.)

You could write a script that runs nm(1) over each object and then
over the final executable.  Print the names of any symbols that appear
in the first list, but not the second.

Ben


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