Am 19.02.2013 um 01:50 schrieb Michael Hennebry
henne...@web.cs.ndsu.nodak.edu:
On Mon, 18 Feb 2013, Paul Norton wrote:
On 18 February 2013 01:56, Michael Hennebry
henne...@web.cs.ndsu.nodak.eduwrote:
Once the object files from fred.c and greg.c are linked,
how does ELF distinguish the
On 18 February 2013 01:56, Michael Hennebry
henne...@web.cs.ndsu.nodak.eduwrote:
fred.c:
static void sfunc(int *p) { *p=1; }
static int x;
void fred(void)
{
... sfunc(x); ...
}
greg.c:
static void sfunc(int *p) { *p=2; }
static int x;
void greg(void)
{
... sfunc(x); ...
}
Once
On Mon, 18 Feb 2013, Paul Norton wrote:
On 18 February 2013 01:56, Michael Hennebry
henne...@web.cs.ndsu.nodak.eduwrote:
Once the object files from fred.c and greg.c are linked,
how does ELF distinguish the sfunc's and the x's?
I've been trying to RTFM, but it hasn't helped?
The variables
fred.c:
static void sfunc(int *p) { *p=1; }
static int x;
void fred(void)
{
... sfunc(x); ...
}
greg.c:
static void sfunc(int *p) { *p=2; }
static int x;
void greg(void)
{
... sfunc(x); ...
}
Once the object files from fred.c and greg.c are linked,
how does ELF distinguish the sfunc's and the
4 matches
Mail list logo