objcopy: falla al copiar una sección en particular (se requiere '.rodata' pero no está presente [...])
Compilé un archivo Hello World C y necesito solo una sección (solo la función hello world).
El archivo compilado tiene el formato elf32-i386 y contiene 4 secciones:.rodata
, .text.hello
, .comment
, .eh_frame
.
Traté de usar objcopy para extraer solo el.text.hello
sección:http://www.thegeekstuff.com/2013/01/objcopy-examples/ ejemplo 3.
Falla, informando:
BFD: hello_new: symbol `.rodata' required but not present
objcopy:hello_new: No symbols
¿Cómo resolverlo?