[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.3.1 Required processor specific support

When writing a `elfnn-cpu.c' file, you must do the following:

You must also add the magic number for this processor to the `prep_headers' function in `elf.c'.

You must also create a header file in the `include/elf' directory called `cpu.h'. This file should define any target specific information which may be needed outside of the BFD code. In particular it should use the `START_RELOC_NUMBERS', `RELOC_NUMBER', `FAKE_RELOC', `EMPTY_RELOC' and `END_RELOC_NUMBERS' macros to create a table mapping the number used to identify a relocation to a name describing that relocation.

While not a BFD component, you probably also want to make the binutils program `readelf' parse your ELF objects. For this, you need to add code for EM_cpu as appropriate in `binutils/readelf.c'.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by system on December, 2 2004 using texi2html