aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-profstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-profstub.c')
-rw-r--r--elf/dl-profstub.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/elf/dl-profstub.c b/elf/dl-profstub.c
index db6693bdce..37b6631d52 100644
--- a/elf/dl-profstub.c
+++ b/elf/dl-profstub.c
@@ -30,8 +30,7 @@ extern struct link_map *_dl_profile_map;
void
_dl_mcount_wrapper (void *selfpc)
{
- _dl_mcount ((ElfW(Addr)) __builtin_return_address (0),
- (ElfW(Addr)) selfpc);
+ _dl_mcount ((ElfW(Addr)) RETURN_ADDRESS (0), (ElfW(Addr)) selfpc);
}
@@ -39,6 +38,5 @@ void
_dl_mcount_wrapper_check (void *selfpc)
{
if (_dl_profile_map != NULL)
- _dl_mcount ((ElfW(Addr)) __builtin_return_address (0),
- (ElfW(Addr)) selfpc);
+ _dl_mcount ((ElfW(Addr)) RETURN_ADDRESS (0), (ElfW(Addr)) selfpc);
}