From 8a3e01b9fb7b179be764d1c10cb0b33abd1e9f68 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 29 Mar 2003 03:46:03 +0000 Subject: 2003-03-26 H.J. Lu * elf/vismod.h (getvarlocal1): Return const char **. (getvarinmod1): Likewise. (getvaritcpt1): Likewise. (getvarlocal2): Likewise. (getvarinmod2): Likewise. (getvaritcpt2): Likewise. (getvaritcpt3): Likewise. * elf/vismain.c (do_test): Adjusted. * elf/vismod1.c (getvarlocal1): Return address. (getvarinmod1): Likewise. (getvaritcpt1): Likewise. * elf/vismod2.c (getvarlocal2): Likewise. (getvarinmod2): Likewise. (getvaritcpt2): Likewise. * elf/vismod3.c (getvaritcpt3): Likewise. --- elf/vismod1.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'elf/vismod1.c') diff --git a/elf/vismod1.c b/elf/vismod1.c index 807dfe15c4..6f9c1a59f9 100644 --- a/elf/vismod1.c +++ b/elf/vismod1.c @@ -79,26 +79,26 @@ int const char *protvarlocal = __FILE__; asm (".protected protvarlocal"); -const char * +const char ** getvarlocal1 (void) { - return protvarlocal; + return &protvarlocal; } const char *protvarinmod = __FILE__; asm (".protected protvarinmod"); -const char * +const char ** getvarinmod1 (void) { - return protvarinmod; + return &protvarinmod; } const char *protvaritcpt = __FILE__; asm (".protected protvaritcpt"); -const char * +const char ** getvaritcpt1 (void) { - return protvaritcpt; + return &protvaritcpt; } -- cgit v1.2.3