diff options
author | Roland McGrath <roland@gnu.org> | 1995-05-09 07:03:38 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-05-09 07:03:38 +0000 |
commit | 273d56ce89f26233cb7a703c542d2732adbea87d (patch) | |
tree | e489d7e9e6cd644a5d0d85d4b39a8c75692e3633 /sysdeps/i386 | |
parent | 421f82e5cc8f81ab003247d771bcecbad799be85 (diff) | |
download | glibc-273d56ce89f26233cb7a703c542d2732adbea87d.zip glibc-273d56ce89f26233cb7a703c542d2732adbea87d.tar.gz glibc-273d56ce89f26233cb7a703c542d2732adbea87d.tar.bz2 |
(__data_start): Define this symbol as the first thing in .data.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r-- | sysdeps/i386/elf/start.S | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sysdeps/i386/elf/start.S b/sysdeps/i386/elf/start.S index 5c29ce4..67d7916 100644 --- a/sysdeps/i386/elf/start.S +++ b/sysdeps/i386/elf/start.S @@ -49,8 +49,8 @@ _start: linked, this will not be set by anything to any function pointer; hopefully it will be zero so we don't try to call random pointers. */ - testl %edx - jeq nofini + testl %edx,%edx + jz nofini pushl %edx call atexit addl $4, %esp @@ -84,3 +84,9 @@ nofini: pushl %eax call exit /* This should never return. */ hlt /* Crash if somehow it does return. */ + +/* Define a symbol for the first piece of initialized data. */ + .data + .globl __data_start +__data_start: + .long 0 |