[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with 64 bit binutils (32bit seems ok)
From: |
me |
Subject: |
Re: problem with 64 bit binutils (32bit seems ok) |
Date: |
Thu, 10 Dec 2009 16:43:15 +0000 |
Re
Not a bug. objcopy -O binary on a relocatable file loses the relocs.
X86_64 uses rela style relocs where the addend is in the reloc, x86
uses rel where the addend is in the section. So in the latter case
you get the "+4" from .text+4, in the former you don't.
Phew!
Thanks very much Alan!
Does anyone know what I should use instead of
"objcopy -O binary a.out a.com"
to stop losing the relocs?