1

When analyzing core on different machine, that binary was built for I ran into:

warning: .dynamic section for "/lib64/libc.so.6" is not at the expected address (wrong library or version mismatch?)

Is there a way to change which libc gdb is looking for?

jbulatek
  • 154
  • 10
  • 1
    Does this help? https://stackoverflow.com/questions/33886913/make-gdb-load-a-shared-library-from-a-specific-path. I've used this for application libraries but, to be honest, I don't know if it works for platform stuff. – Kevin Boone Sep 11 '20 at 17:44

1 Answers1

0

Thanks to @Kevin Boone!

set sysroot helped I set it to ./ and put desired libc in ./lib64 and then loaded core using core-file

jbulatek
  • 154
  • 10