Add symbolizer option to generate debug information only.
There is no need to copy the .rodata and .text sections since the
consumers can get their data form the original ELF file. We mark
those section as SHT_NOBITS instead, which is the standard way to
create ELF file with separate debug information only.
The new option is called --only-keep-debug and it essentially has
the same effect as --only-keep-debug option for "strip" command.
2 files changed