Rodney Dowdall(deleted)
07/23/2015 10:05 AM
post114156
|
Hello Ryan
Just to follow up, the -fuse-ld=gold did work, and the gold linker was able to link the shared object.
Now that I have it linked though, there isn't much that I can do with it. Most of the tools link ntox86-strip and ntx86
-objdump report the file as being truncated. I had to use the strip utility from linux to strip the library down so
that I could run it on the target.
Once I got it running on the target, I tried to connect with it with gdb, but it has a problem with the shared object as
well and says that the file is truncated.
I tried the following sequence thinking that loading the sym file wouldn't have the size limit on it:
objcopy --only-keep-debug mylib.so mylib.so.sym
strip --strip-all -R .ident -R .comment mylib.so
ntox86-objcopy --only-keep-debug mylib.so mylib.so.sym
but gdb can't load the sym file either.
I'm compiling my library with the following options to lower the size:
-V4.8.3,gcc_ntox86_gpp -lang-c++ -fuse-ld=gold -g -Os -fno-rtti -Wformat -Wformat-security -Werror=format-security -Wl,-
-no-keep-memory -fmessage-length=0 -Wl,--warn-shared-textrel -Wa,--compress-debug-sections
Just wondering if there is anything else I can do to work around the issue.
|
|
|