aboutsummaryrefslogtreecommitdiff
path: root/bfd/som.c
diff options
context:
space:
mode:
authorJerome Guitton <guitton@adacore.com>2005-04-21 10:47:49 +0000
committerJerome Guitton <guitton@adacore.com>2005-04-21 10:47:49 +0000
commit0858d3ec47c3fb12bcee67f07e07998c75a0e9ec (patch)
tree89229e5ba2939e9bf8c4f56467b0c28d86c49db1 /bfd/som.c
parent7920ce38c3e43d462e360b21db6cc9c17a40b4f4 (diff)
downloadgdb-0858d3ec47c3fb12bcee67f07e07998c75a0e9ec.zip
gdb-0858d3ec47c3fb12bcee67f07e07998c75a0e9ec.tar.gz
gdb-0858d3ec47c3fb12bcee67f07e07998c75a0e9ec.tar.bz2
* som.c (som_bfd_print_private_bfd_data): Add explicit cast to long
for struct som_exec_auxhdr fields.
Diffstat (limited to 'bfd/som.c')
-rw-r--r--bfd/som.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/bfd/som.c b/bfd/som.c
index 6ec9bef..05e6d16 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -5080,16 +5080,20 @@ som_bfd_print_private_bfd_data (bfd *abfd, void *farg)
fprintf (f, "\n");
fprintf (f, " type %#x\n", auxhdr->type);
fprintf (f, " length %#x\n", auxhdr->length);
- fprintf (f, " text size %#lx\n", exec_header->exec_tsize);
- fprintf (f, " text memory offset %#lx\n", exec_header->exec_tmem);
- fprintf (f, " text file offset %#lx\n", exec_header->exec_tfile);
- fprintf (f, " data size %#lx\n", exec_header->exec_dsize);
- fprintf (f, " data memory offset %#lx\n", exec_header->exec_dmem);
- fprintf (f, " data file offset %#lx\n", exec_header->exec_dfile);
- fprintf (f, " bss size %#lx\n", exec_header->exec_bsize);
- fprintf (f, " entry point %#lx\n", exec_header->exec_entry);
- fprintf (f, " loader flags %#lx\n", exec_header->exec_flags);
- fprintf (f, " bss initializer %#lx\n", exec_header->exec_bfill);
+
+ /* Note that, depending on the HP-UX version, the following fields can be
+ either ints, or longs. */
+
+ fprintf (f, " text size %#lx\n", (long) exec_header->exec_tsize);
+ fprintf (f, " text memory offset %#lx\n", (long) exec_header->exec_tmem);
+ fprintf (f, " text file offset %#lx\n", (long) exec_header->exec_tfile);
+ fprintf (f, " data size %#lx\n", (long) exec_header->exec_dsize);
+ fprintf (f, " data memory offset %#lx\n", (long) exec_header->exec_dmem);
+ fprintf (f, " data file offset %#lx\n", (long) exec_header->exec_dfile);
+ fprintf (f, " bss size %#lx\n", (long) exec_header->exec_bsize);
+ fprintf (f, " entry point %#lx\n", (long) exec_header->exec_entry);
+ fprintf (f, " loader flags %#lx\n", (long) exec_header->exec_flags);
+ fprintf (f, " bss initializer %#lx\n", (long) exec_header->exec_bfill);
}
return TRUE;