This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error: cannot represent relocation type BFD_RELOC_64


Hi kanishk,

Any insight into this..

The assembler is generating an object file which contains the BFD_RELOC_64 relocation. So the assembler must think that it is creating a 64-bit binary. Take a look at the gas command line being issued by gcc when you are compiling application.c. ie:


gcc -v -I/usr/src/linux-headers-2.6.27-9/include/ application.c log.c -lpthread

If there is nothing on the gas command line to indicate that 64-bit mode has been selected then have a look in the assembler source file. (ie add --save-temps to the gcc command line). Maybe 64-bit mode is being selected inside the assembler source file.

Cheers
  Nick



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]