diff options
author | Doug Evans <dje@google.com> | 1997-12-22 16:47:21 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1997-12-22 16:47:21 +0000 |
commit | 20b2c808b8d9b70c7d3f7802592c216f1443e7bb (patch) | |
tree | 71b3043c36952f02b8f29a90df64d8217255be9c /bfd/elf.c | |
parent | e535f07bc1065c2b5ccd60e87cae5453d19b4f22 (diff) | |
download | fsf-binutils-gdb-20b2c808b8d9b70c7d3f7802592c216f1443e7bb.zip fsf-binutils-gdb-20b2c808b8d9b70c7d3f7802592c216f1443e7bb.tar.gz fsf-binutils-gdb-20b2c808b8d9b70c7d3f7802592c216f1443e7bb.tar.bz2 |
* Makefile.am (ALL_MACHINES,BFD32_BACKENDS): Add txvu support.
(cpu-txvu.lo,elf32-txvu.lo): Add rules for.
* Makefile.in: Rebuild.
* config.bfd, configure.in: Add txvu support.
* configure: Regenerate.
* archures.c, elf.c, targets.c: Add txvu support.
* bfd-in2.h: Regenerate.
* cpu-txvu.c, elf32-txvu.c: New files.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -2431,6 +2431,15 @@ assign_file_positions_for_segments (abfd) if (m->count > 0) { BFD_ASSERT (p->p_type == PT_LOAD); + + if (p->p_vaddr < off) + { + _bfd_error_handler ("%s: Not enough room for program headers, try linking with -N", + bfd_get_filename (abfd)); + bfd_set_error (bfd_error_bad_value); + return false; + } + p->p_vaddr -= off; if (! m->p_paddr_valid) p->p_paddr -= off; @@ -2900,6 +2909,11 @@ prep_headers (abfd) case bfd_arch_mn10300: i_ehdrp->e_machine = EM_CYGNUS_MN10300; break; +/* start-sanitize-sky */ + case bfd_arch_txvu: + i_ehdrp->e_machine = EM_CYGNUS_TXVU; + break; +/* end-sanitize-sky */ /* also note that EM_M32, AT&T WE32100 is unknown to bfd */ default: i_ehdrp->e_machine = EM_NONE; |