diff options
author | echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-08 22:16:31 +0000 |
---|---|---|
committer | echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-08 22:16:31 +0000 |
commit | 522ae219242e001f2bd25804b4db6e5696f82ce9 (patch) | |
tree | 76bf0cb58461ac63fd23351eedaf189dd5e0f42b /gcc/unwind-dw2-fde-darwin.c | |
parent | 8baa9d15742b554a523141858b834acc8ef72ce1 (diff) | |
download | gcc-522ae219242e001f2bd25804b4db6e5696f82ce9.tar.gz |
2006-05-08 Eric Christopher <echristo@apple.com>
* unwind-dw2-fde-darwin.c (examine_objects): Only check data
section for ppc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind-dw2-fde-darwin.c')
-rw-r--r-- | gcc/unwind-dw2-fde-darwin.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/unwind-dw2-fde-darwin.c b/gcc/unwind-dw2-fde-darwin.c index 0e16371f6c8..cd238db2e10 100644 --- a/gcc/unwind-dw2-fde-darwin.c +++ b/gcc/unwind-dw2-fde-darwin.c @@ -152,18 +152,17 @@ examine_objects (void *pc, struct dwarf_eh_bases *bases, int dont_alloc) for (; image != NULL; image = image->next) if ((image->examined_p & EXAMINED_IMAGE_MASK) == 0) { - char *fde; + char *fde = NULL; unsigned long sz; -#ifdef __ppc64__ - fde = getsectdatafromheader_64 ((struct mach_header_64 *) image->mh, - "__DATA", "__eh_frame", &sz); -#else + /* For ppc only check whether or not we have __DATA eh frames. */ +#ifdef __ppc__ fde = getsectdatafromheader (image->mh, "__DATA", "__eh_frame", &sz); #endif + if (fde == NULL) { -#ifdef __ppc64__ +#if __LP64__ fde = getsectdatafromheader_64 ((struct mach_header_64 *) image->mh, "__TEXT", "__eh_frame", &sz); #else |