> You have "call b_print_newline" where b_print_newline is 0x100040
> and you get "callq *0x100040". What is wrong with that? Please
> tell me why you think binutis is wrong. Please don't mention NASM
> here since I can say NASM is wrong.
I brought the issue up on the mailing list because I wanted to know how to write the NASM version of the program in GAS. I was then told (by you) to report a bug:
http://sourceware.org/ml/binutils/2011-07/msg00277.html
Perhaps it's not a bug. I just would like to know how to port the NASM/FASM example to GAS.

(In reply to comment #2)
> > You have "call b_print_newline" where b_print_newline is 0x100040
> > and you get "callq *0x100040". What is wrong with that? Please
> > tell me why you think binutis is wrong. Please don't mention NASM
> > here since I can say NASM is wrong.
>
> I brought the issue up on the mailing list because I wanted to know how to
> write the NASM version of the program in GAS. I was then told (by you) to
> report a bug:
>
> http://sourceware.org/ml/binutils/2011-07/msg00277.html
>
> Perhaps it's not a bug. I just would like to know how to port the NASM/FASM
> example to GAS.
Please tell me exactly what you want to do and I may tell you how to
do it with gas. Please leave NASM out of it.