twiddler compile problem

Adam Lackorzynski adam at
Sat Feb 26 20:32:51 CET 2005

On Sat Feb 26, 2005 at 11:29:20 -0600, Jayesh Salvi wrote:
> I am facing problems with getting twiddler to compile. I have
> binutils- Here is the error. I have header files in
> place, I think this is linking problem but I have /usr/lib/libbfd.a
> and /usr/lib/libopcodes.a.
> [jayesh at orion twiddler]$ make
> gcc -W -Wall -g -O2 -DTARGET_X86=1 -lbfd -lopcodes -o twiddler_x86 twiddler.c
> /tmp/ccKfu4xD.o(.text+0x4a): In function `disasm_section':
> /home/jayesh/l4/tool/twiddler/twiddler.c:158: undefined reference to
> `bfd_get_section_contents'
> /tmp/ccKfu4xD.o(.text+0x180):/home/jayesh/l4/tool/twiddler/twiddler.c:127:
> undefined reference to `print_insn_i386'

Are the .so fils there as well? Looks like not.

Anyway, something like this should work too, looks like I got that wrong

gcc -W -Wall -g -O2 -DTARGET_X86=1 -o twiddler_x86 twiddler.c -lbfd -lopcodes -liberty

Adam                 adam at

More information about the l4-hackers mailing list