From 73efc556ac5c130f9fc95df337c48f3a5b555123 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 26 Apr 2019 08:11:38 -0700 Subject: Work around clang asm problem by changing types of two variables --- elf/dl-profile.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/elf/dl-profile.c b/elf/dl-profile.c index 42995305af..88123f9958 100644 --- a/elf/dl-profile.c +++ b/elf/dl-profile.c @@ -157,8 +157,11 @@ static uint32_t narcs; currently in the mmaped file. At no point of time this has to be the same as NARCS. If it is equal all entries from the file are in our lists. */ +#ifdef __clang__ +static volatile unsigned long *narcsp; +#else static volatile uint32_t *narcsp; - +#endif struct here_fromstruct { @@ -170,7 +173,11 @@ static volatile uint16_t *tos; static struct here_fromstruct *froms; static uint32_t fromlimit; +#ifdef __clang__ +static volatile unsigned long fromidx; +#else static volatile uint32_t fromidx; +#endif static uintptr_t lowpc; static size_t textsize; -- cgit 1.4.1