Add TMS320C4x support

This commit is contained in:
Nick Clifton
2002-08-28 10:38:51 +00:00
parent df44284ec4
commit 026df7c5e6
47 changed files with 6235 additions and 232 deletions

View File

@@ -1,3 +1,8 @@
2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* objdump.c (dump_headers): Add printing of HAS_LOAD_PAGE flag.
(dump_bfd_header): Likewise.
2002-08-27 Alan Modra <amodra@bigpond.net.au>
* nm.c: Revert last change.

View File

@@ -74,7 +74,8 @@ static bfd_vma adjust_section_vma = 0; /* --adjust-vma */
static int file_start_context = 0; /* --file-start-context */
/* Extra info to pass to the disassembler address printing function. */
struct objdump_disasm_info {
struct objdump_disasm_info
{
bfd *abfd;
asection *sec;
boolean require_sec;
@@ -369,6 +370,8 @@ dump_headers (abfd)
if (wide_output)
printf (_(" Flags"));
if (abfd->flags & HAS_LOAD_PAGE)
printf (_(" Pg"));
printf ("\n");
bfd_map_over_sections (abfd, dump_section_header, (PTR) NULL);
@@ -2002,6 +2005,7 @@ dump_bfd_header (abfd)
PF (WP_TEXT, "WP_TEXT");
PF (D_PAGED, "D_PAGED");
PF (BFD_IS_RELAXABLE, "BFD_IS_RELAXABLE");
PF (HAS_LOAD_PAGE, "HAS_LOAD_PAGE");
printf (_("\nstart address 0x"));
bfd_printf_vma (abfd, abfd->start_address);
printf ("\n");
@@ -2034,8 +2038,6 @@ dump_bfd (abfd)
}
}
printf (_("\n%s: file format %s\n"), bfd_get_filename (abfd),
abfd->xvec->name);
if (dump_ar_hdrs)
print_arelt_descr (stdout, abfd, true);
if (dump_file_header)
@@ -2045,14 +2047,12 @@ dump_bfd (abfd)
putchar ('\n');
if (dump_section_headers)
dump_headers (abfd);
if (dump_symtab || dump_reloc_info || disassemble || dump_debugging)
{
syms = slurp_symtab (abfd);
}
syms = slurp_symtab (abfd);
if (dump_dynamic_symtab || dump_dynamic_reloc_info)
{
dynsyms = slurp_dynamic_symtab (abfd);
}
dynsyms = slurp_dynamic_symtab (abfd);
if (dump_symtab)
dump_symbols (abfd, false);
if (dump_dynamic_symtab)
@@ -2082,11 +2082,13 @@ dump_bfd (abfd)
}
}
}
if (syms)
{
free (syms);
syms = NULL;
}
if (dynsyms)
{
free (dynsyms);

View File

@@ -40,7 +40,7 @@ lappend cpus_expected d10v d30v fr30 fr500 h8 hppa i386 i860 i960 ip2022
lappend cpus_expected m32r m68hc11 m68hc12 m68k m88k MCore
lappend cpus_expected mips mn10200 mn10300 ns32k pj powerpc pyramid
lappend cpus_expected romp rs6000 s390 sh sparc
lappend cpus_expected tahoe tic54x tic80 tms320c30 tms320c54x v850
lappend cpus_expected tahoe tic54x tic80 tms320c30 tms320c4x tms320c54x v850
lappend cpus_expected vax we32k x86-64 xscale z8k z8001 z8002
# Make sure the target CPU shows up in the list.