diff options
Diffstat (limited to 'libc/sysdeps/linux/bfin/crt1.S')
| -rw-r--r-- | libc/sysdeps/linux/bfin/crt1.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/bfin/crt1.S b/libc/sysdeps/linux/bfin/crt1.S index 38e68c9ac..f091a733d 100644 --- a/libc/sysdeps/linux/bfin/crt1.S +++ b/libc/sysdeps/linux/bfin/crt1.S @@ -14,8 +14,7 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ +not, see <http://www.gnu.org/licenses/>. */ /* When we enter this piece of code, the user stack looks like this: @@ -109,12 +108,11 @@ __start: [SP + 20] = R7; /* Ok, now run uClibc's main() -- shouldn't return */ -#if defined L_crt1 && defined __UCLIBC_CTOR_DTOR__ +#if (defined L_crt1 || defined L_Scrt1) && defined __UCLIBC_CTOR_DTOR__ #ifdef __BFIN_FDPIC__ R3 = [P3 + __init@FUNCDESC_GOT17M4]; #elif defined USE_GOT - P5 = [P5 + _current_shared_library_p5_offset_]; R3 = [P5 + ___shared_flat_init@GOT]; #else R3.H = __init; @@ -165,3 +163,5 @@ lib_main: .hidden _current_shared_library_p5_offset_ #endif + +.section .note.GNU-stack,"",%progbits |
