[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Need help on how to port GAS
From: |
pnn98017 |
Subject: |
Need help on how to port GAS |
Date: |
Fri, 31 May 2002 11:10:53 +0200 |
Hi all,
We're two students at Mälardalens University in Sweden who are trying to
port gas, ld & gdb to a new architecture. It's a very simple 32 bit RISC
processor. We've been looking around for any documentation that can help us
but have come up short so far. From a previous posting on this board we
have found that the following files are the ones to write/change:
>gas/config/tc-FOO.h - Customisation of generic parts of the assembler
>gas/config/tc-FOO.c - Port specific parts of the assembler
>include/{coff|elf}/FOO.h - Port specific header file
>include/opcodes/FOO.h - Port specific ISA encoding
>opcodes/FOO-dis.c - Port specific disassembler routines
>opcodes/FOO-opc.c - Port specific ISA encoding
>bfd/{elf32|coff}-FOO.c - Port specific relocation handlers
>bfd/cpu-FOO.c - Port specific description of the CPU
>ld/scripttempl/FOO.sc - Port specific linker template file
>ld/emulparam/FOO.sh - Port specific linker customisation
You will also need to add support for your chip to the various
configuration files:
>gas/configure.in
>opcodes/configure.in
>bfd/configure.in
>bfd/config.bfd
>bfd/archures.c
>bfd/reloc.c
>ld/configure.in
>ld/configure.tgt
>include/dis-asm.h
We would appreciate any additional information on how a port is done or if
you know of people who have done a porting.
Thanx.
Peter Nilsson <address@hidden
Magnus Nilsson
Mälardalens University
Institute of Computer Science
Sweden
- Need help on how to port GAS,
pnn98017 <=