I am tying to use objcopy to include a binary form of a text file into an executable. (At runtime I need the file as a string). This works fine until the linker
objcopy
Another alternative which I have used is to cd to the source directory and then give objcopy the basename of the source. In bash, this would be:
cd
bash
cd $(dirname $SOURCE) objcopy ... $(basename $SOURCE) $TARGET
This way the symbols generated are always _binary_file_name_xxx without the path.
_binary_file_name_xxx