Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2003-03-26 H.J. Lu <hjl@gnu.org>
	* 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.
  • Loading branch information
Roland McGrath committed Mar 29, 2003
1 parent dd731d5 commit 8a3e01b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
14 changes: 7 additions & 7 deletions elf/vismod.h
Expand Up @@ -5,21 +5,21 @@ extern int callinmod1 (void);
extern int (*getinmod1 (void)) (void);
extern int callitcpt1 (void);
extern int (*getitcpt1 (void)) (void);
extern const char *getvarlocal1 (void);
extern const char *getvarinmod1 (void);
extern const char *getvaritcpt1 (void);
extern const char **getvarlocal1 (void);
extern const char **getvarinmod1 (void);
extern const char **getvaritcpt1 (void);
extern int calllocal2 (void);
extern int (*getlocal2 (void)) (void);
extern int callinmod2 (void);
extern int (*getinmod2 (void)) (void);
extern int callitcpt2 (void);
extern int (*getitcpt2 (void)) (void);
extern const char *getvarlocal2 (void);
extern const char *getvarinmod2 (void);
extern const char *getvaritcpt2 (void);
extern const char **getvarlocal2 (void);
extern const char **getvarinmod2 (void);
extern const char **getvaritcpt2 (void);
extern int callitcpt3 (void);
extern int (*getitcpt3 (void)) (void);
extern const char *getvaritcpt3 (void);
extern const char **getvaritcpt3 (void);

extern int protinmod (void);
extern int protitcpt (void);
Expand Down
12 changes: 6 additions & 6 deletions elf/vismod1.c
Expand Up @@ -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;
}
14 changes: 7 additions & 7 deletions elf/vismod2.c
Expand Up @@ -80,28 +80,28 @@ int
const char *protvarlocal = __FILE__;
asm (".protected protvarlocal");

const char *
const char **
getvarlocal2 (void)
{
return protvarlocal;
return &protvarlocal;
}

const char *protvarinmod = __FILE__;
asm (".protected protvarinmod");

const char *
const char **
getvarinmod2 (void)
{
return protvarinmod;
return &protvarinmod;
}

const char *protvaritcpt = __FILE__;
asm (".protected protvaritcpt");

const char *
const char **
getvaritcpt2 (void)
{
return protvaritcpt;
return &protvaritcpt;
}

/* We must never call these functions. */
Expand All @@ -117,7 +117,7 @@ int
abort ();
}

const char *
const char **
getvaritcpt3 (void)
{
abort ();
Expand Down
4 changes: 2 additions & 2 deletions elf/vismod3.c
Expand Up @@ -40,8 +40,8 @@ int
const char *protvaritcpt = __FILE__;
asm (".protected protvaritcpt");

const char *
const char **
getvaritcpt3 (void)
{
return protvaritcpt;
return &protvaritcpt;
}

0 comments on commit 8a3e01b

Please sign in to comment.