better attempt to indicate start and end of own BSS; still not good
enough
This commit is contained in:
parent
1b6fe5b9ed
commit
3030b5edd1
|
@ -16,10 +16,14 @@
|
|||
exa argv
|
||||
exa argc
|
||||
exa MainLB
|
||||
exa bkillbss
|
||||
exp $catch
|
||||
exp $init
|
||||
inp $trap_handler
|
||||
|
||||
bkillbss
|
||||
bss EM_PSIZE,0,0
|
||||
|
||||
exp $m_a_i_n
|
||||
pro $m_a_i_n, 0
|
||||
|
||||
|
|
|
@ -45,8 +45,8 @@ static int blablabla; /* We cannot use end, because then also
|
|||
|
||||
killbss()
|
||||
{
|
||||
extern char *edata;
|
||||
register char *p = (char *) &edata;
|
||||
extern char *bkillbss;
|
||||
register char *p = (char *) &bkillbss;
|
||||
|
||||
while (p < (char *) &blablabla) *p++ = 0x66;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue