mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-22 13:34:53 +08:00
os_dep.c (GC_init_linux_data_start): Fix references to __data_start and _end.
* os_dep.c (GC_init_linux_data_start): Fix references to __data_start and _end. From-SVN: r51467
This commit is contained in:
parent
cd4e8331bd
commit
a3c5fa34ca
@ -1,3 +1,8 @@
|
||||
2002-03-27 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* os_dep.c (GC_init_linux_data_start): Fix references to
|
||||
__data_start and _end.
|
||||
|
||||
2002-03-25 Loren J. Rittle <ljrittle@acm.org>
|
||||
|
||||
* include/private/gcconfig.h: Change all likely references
|
||||
|
@ -155,11 +155,11 @@
|
||||
|
||||
# ifdef LINUX
|
||||
# pragma weak __data_start
|
||||
extern int __data_start;
|
||||
extern int __data_start[];
|
||||
# pragma weak data_start
|
||||
extern int data_start;
|
||||
extern int data_start[];
|
||||
# endif /* LINUX */
|
||||
extern int _end;
|
||||
extern int _end[];
|
||||
|
||||
ptr_t GC_data_start;
|
||||
|
||||
@ -169,16 +169,16 @@
|
||||
|
||||
# ifdef LINUX
|
||||
/* Try the easy approaches first: */
|
||||
if (&__data_start != 0) {
|
||||
GC_data_start = (ptr_t)(&__data_start);
|
||||
if (__data_start != 0) {
|
||||
GC_data_start = (ptr_t)__data_start;
|
||||
return;
|
||||
}
|
||||
if (&data_start != 0) {
|
||||
GC_data_start = (ptr_t)(&data_start);
|
||||
if (data_start != 0) {
|
||||
GC_data_start = (ptr_t)data_start;
|
||||
return;
|
||||
}
|
||||
# endif /* LINUX */
|
||||
GC_data_start = GC_find_limit((ptr_t)(&_end), FALSE);
|
||||
GC_data_start = GC_find_limit((ptr_t)_end, FALSE);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user