[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[incomplete patch] Get objdump to report exception tables for ARM/SH4 co
From: |
Danny Backx |
Subject: |
[incomplete patch] Get objdump to report exception tables for ARM/SH4 correctly |
Date: |
Mon, 06 Aug 2007 12:50:32 +0200 |
[Retry to send this message without the attachment that probably blocked
the earlier attempt.]
I've attached a patch that'll get objdump to report exception tables
correctly for ARM and SH4 which, according to MSDN, have a different
format for storing the pdata segment.
Here's part of the output, used on a test executable :
dannypc: {642} tail ~/tmp/arm/test/exception/syntax.od
0000603c 00000000 00000000 00000000 00000000 00000000
The Function Table (interpreted .pdata section contents)
vma: Begin Prolog Function Flags Exception EH
Address Length Length 32b exc Handler Data
00014000 00011008 00000002 000fffff 1 1 000110f8 00000000
(_eh_handler)
00014008 000110a4 00000002 00000015 1 1 00011058 00000000
(handler)
private flags = 820: [APCS-32] [floats passed in integer registers]
[absolute position] [interworking not supported]
dannypc: {643}
I have three uncertainties with this patch :
1. I've copied code from elsewhere in binutils. Just want to point to
the fact that I did this; I don't think this one is worth exporting as a
public API.
2. Cleanup in my_symbol_for_address. There's none now. Should there be?
3. Which macros should be used for the conditional compilation ? I've
used
#if defined(ARM_WINCE) || defined(SH4)
in my code. This happens to work for me because our build chain defines
ARM_WINCE, but I don't suppose this is right.
Attached are :
- a sample ChangeLog entry
- the patch in its current state
- a gzipped sample file on which this can be used to produce the output
as above. I've renamed it slightly, to avoid virus scanners.
Please advise on how to proceed.
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
ChangeLog.ce
Description: Text document
x
Description: Text Data
signature.asc
Description: This is a digitally signed message part
- [incomplete patch] Get objdump to report exception tables for ARM/SH4 correctly,
Danny Backx <=