summaryrefslogtreecommitdiffstats
path: root/libmudflap/mf-heuristics.c
diff options
context:
space:
mode:
authormacro <macro@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-15 16:15:16 +0000
committermacro <macro@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-15 16:15:16 +0000
commitf1c01f037070e4e041e84af7ff9fe1598996e384 (patch)
tree9deba4f5d6424162c80507c90160849056f70c08 /libmudflap/mf-heuristics.c
parent03d231963414843fbc5d9e87045512ef8d03aae6 (diff)
downloadppe42-gcc-f1c01f037070e4e041e84af7ff9fe1598996e384.tar.gz
ppe42-gcc-f1c01f037070e4e041e84af7ff9fe1598996e384.zip
* configure.ac: Test for the name of the symbol used for the entry
point; define ENTRY_POINT to the result. * configure: Regenerate. * config.h.in: Regenerate. * mf-heuristics.c: Replace _start with ENTRY_POINT throughout. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap/mf-heuristics.c')
-rw-r--r--libmudflap/mf-heuristics.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libmudflap/mf-heuristics.c b/libmudflap/mf-heuristics.c
index df2a0391eaf..9118bc6e61b 100644
--- a/libmudflap/mf-heuristics.c
+++ b/libmudflap/mf-heuristics.c
@@ -43,7 +43,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
extern char _end;
-extern char _start;
+extern char ENTRY_POINT;
/* Run some quick validation of the given region.
@@ -164,10 +164,11 @@ __mf_heuristic_check (uintptr_t ptr, uintptr_t ptr_high)
}
- /* The third heuristic is to approve all accesses between _start and _end,
- which should include all text and initialized data. */
+ /* The third heuristic is to approve all accesses between _start (or its
+ equivalent for the given target) and _end, which should include all
+ text and initialized data. */
if (__mf_opts.heur_start_end)
- if (ptr >= (uintptr_t) & _start && ptr_high <= (uintptr_t) & _end)
+ if (ptr >= (uintptr_t) & ENTRY_POINT && ptr_high <= (uintptr_t) & _end)
return 1; /* uncacheable */
return 0; /* unknown */
OpenPOWER on IntegriCloud