0

Is there a way to see/capture weakly linked functions in an object?

I removed older library's linkage but since some are linked with weak-linkage, I can't capture all of the used functions.

Mert Can Ergün
  • 399
  • 5
  • 14
  • 1
    Please only use the language-tag of the language you're actually programming in. – Some programmer dude Oct 11 '17 at 06:05
  • @Someprogrammerdude what do you mean? what's the correct way to tag a c/c++ question? – Mert Can Ergün Oct 11 '17 at 06:09
  • If you program in C then use only the C tag. Don't use tags for multiple languages unless your problem is about comparison between them. Remember that C and C++ are two *very* different languages, with very different syntax (though some is shared) and widely different semantics. And as many will remind you, there is no such languages a "C/C++". There's *either* C, *or* C++. – Some programmer dude Oct 11 '17 at 06:12
  • Why is this tagged with the `hyperlink` tag? – Ajay Brahmakshatriya Oct 11 '17 at 06:17
  • The question is about a C feature that is used by C++ too. Hence we are in the shared ground for this question. But I'll still remove the extra tag if that can bother people. – Mert Can Ergün Oct 11 '17 at 06:18
  • 1
    Try `objdump -h` on the object file. The weak symbols will be in its own section with the discard flag. – Ajay Brahmakshatriya Oct 11 '17 at 06:21

0 Answers0