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] |
+ if (elf_header.e_machine == EM_ARM) + addr.offset&= ~1;
I suspect that this behaviour might be needed for other architectures as well (MIPS16 maybe ?). So you might as well use a macro that tests e_machine and returns an unmangled offset.
Could you give me an example of what you mean? Something like this?
#define REMOVE_ARCH_BITS(ADDR) do { \ if (elf_header.e_machine == EM_ARM) \ ADDR&= ~1; \ } while (0)
Just curious - are there any ARM binaries that use REL relocations and have unwind tables ?
In practice, I'm not sure. I know there are REL ARM binaries - VxWorks uses REL, but last I checked it wasn't on the EABI yet.
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |