objcopy

How can I extract an array from an executable file?

I want to do the inverse of this question. I am embedding a file into an executable as an array, and I would later like to extract the embedded file from the executable. It seems like objcopy might be useful here but I haven't figured out the proper incantation yet. (Edit: clarify question, I somehow removed the crux of it in editing ...

powerpc-eabi-objcopy creates 1GByte file

Hello, my elf-file is about 1MByte with all debug symbols. As I try to create a binary file with "powerpc-eabi-objcopy -O binary out.elf out.bin" the out.bin is 1GByte huge. The build script looks like this STARTUP(vectors.o) ENTRY(__exception_reset) INPUT(extras.o) GROUP( libtarget.a libgcc.a libsupc++.a ) MEMORY { rom : ORIGIN = 0x...

An objcopy equivalent for Mac / iPhone?

Hello, I would like to rename symbols inside object files (.o) with something that would be the Mac equivalent of binutils' objcopy --redefine-syms tool. I found no arm-apple-darwin10-objcopy. I tried the MacPorts' arm-elf-binutils port and also tried to play a bit with otool and segedit without much success. Any idea please? ...

Still reports "undefined symbol: new_add" after use "objcopy --redefine-sym add=new_ad"

Hi, I need to load two dynamic libraries and there is one function name confliction. So I use the the command "objcopy --redefine-sym add=new_add libmy_test.so libmy_test_new.so" to modify the symbol name. But it still reports "Error: ./libmy_test_new.so: undefined symbol: new_add" The following are my test codes. void *lib_handle2 = ...