39

I tried running objdump on the lib to figure it out without success. Is there a way to find out what a library does?

2

1 Answer 1

35

It's GCC's runtime library, which contains some low-level functions that GCC emits calls to (like long long division on 32-bit CPUs).

Part of this library is required by the LSB.

5
  • 1
    +1 dumb old me, sometimes one just doesn't look in the obvious place
    – celavek
    Sep 9, 2010 at 14:32
  • 2
    do you happen to know if a specific processor's EABI(e.g. ARM EABI) is implemented in that lib?
    – celavek
    Sep 9, 2010 at 14:33
  • @celavek I'm not sure what you mean. AFAIK, current platform's ABI would be implemented, same as in other GCC runtime libs: gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html
    – Alex B
    Sep 10, 2010 at 0:14
  • 2
    What if you use clang instead of gcc, would it still be linked in?
    – Bram
    Oct 8, 2019 at 2:56
  • 1
    It can be, depending on the --rtlib= option to clang. Aug 10, 2020 at 14:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .