Relocation
Nick Clifton
nickc@cambridge.redhat.com
Thu Sep 20 00:46:00 GMT 2001
Hi Changwoo,
> I'd like to know which parts of the source files should be modifed
> if I would change the outcome of relocation for x86 processor.
>
> I would like to modify the souce files to get binary files different
> from normal ones for experimental purpose.
It is not very clear from your posting exactly what you are trying to
do. It sounds as though you want to add some new relocations to the
x86 target, or possibly modify some already existing ones.
The files you will most likely want to examine and edit are:
include/elf/i386.h -- to add new relocation numbers
bfd/reloc.c -- to add new BFD_RELOC_386_... enums
(don't forget to run 'make headers'
afterwards to regenerate bfd-in2.h)
bfd/elf32-i386.c -- to add code to process the new relocs.
gas/config/tc-i386.c -- to add code to generate the new relocs.
Cheers
Nick
More information about the Binutils
mailing list