aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-08-28 10:38:51 +0000
committerNick Clifton <nickc@redhat.com>2002-08-28 10:38:51 +0000
commit026df7c5e64e4a8de40c8d744980b511bcce983d (patch)
tree5f4b6f8bf3dcf5b10eb51d25d82f5fac4e0f25ac /binutils
parentdf44284ec4c9d3b10c45d9b09b5b6cd8dd8d8630 (diff)
downloadgdb-026df7c5e64e4a8de40c8d744980b511bcce983d.zip
gdb-026df7c5e64e4a8de40c8d744980b511bcce983d.tar.gz
gdb-026df7c5e64e4a8de40c8d744980b511bcce983d.tar.bz2
Add TMS320C4x support
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objdump.c20
-rw-r--r--binutils/testsuite/binutils-all/objdump.exp2
3 files changed, 17 insertions, 10 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index b196c23..444dfcb 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 21acc8b..6488f9f 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -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);
diff --git a/binutils/testsuite/binutils-all/objdump.exp b/binutils/testsuite/binutils-all/objdump.exp
index 09c557f..53168d4 100644
--- a/binutils/testsuite/binutils-all/objdump.exp
+++ b/binutils/testsuite/binutils-all/objdump.exp
@@ -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.