(_dl_start_user): Access __libc_stack_end through GOT since it is a global symbol.

This commit is contained in:
Andreas Schwab 2003-03-01 15:33:11 +00:00
parent bd8bb78ba2
commit 3d5c082124

View File

@ -1,5 +1,5 @@
/* Machine-dependent ELF dynamic relocation inline functions. m68k version. /* Machine-dependent ELF dynamic relocation inline functions. m68k version.
Copyright (C) 1996-2001, 2002 Free Software Foundation, Inc. Copyright (C) 1996-2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -158,7 +158,7 @@ _dl_start_user:\n\
| Save the user entry point address in %a4.\n\ | Save the user entry point address in %a4.\n\
move.l %d0, %a4\n\ move.l %d0, %a4\n\
| Remember the highest stack address.\n\ | Remember the highest stack address.\n\
lea __libc_stack_end(%pc), %a0\n\ move.l __libc_stack_end@GOTPC(%pc), %a0\n\
move.l %sp, (%a0)\n\ move.l %sp, (%a0)\n\
| See if we were run as a command with the executable file\n\ | See if we were run as a command with the executable file\n\
| name as an extra leading argument.\n\ | name as an extra leading argument.\n\