diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 19:25:12 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 19:25:12 +0000 |
commit | bfa91a43d6f8a58aa9db375ed0a6209293e9f312 (patch) | |
tree | bbc7fa087f78143ef291e1e2fb973755585921ff /ldso | |
parent | 60155d4649bde150591fb8ce3c6b0260739ad05c (diff) | |
download | uClibc-alpine-bfa91a43d6f8a58aa9db375ed0a6209293e9f312.tar.bz2 uClibc-alpine-bfa91a43d6f8a58aa9db375ed0a6209293e9f312.tar.xz |
Make i386 build w/ -std=c99 (almost)
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/i386/dl-startup.h | 2 | ||||
-rw-r--r-- | ldso/ldso/i386/dl-sysdep.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ldso/ldso/i386/dl-startup.h b/ldso/ldso/i386/dl-startup.h index d3c7109d9..6521bf72d 100644 --- a/ldso/ldso/i386/dl-startup.h +++ b/ldso/ldso/i386/dl-startup.h @@ -3,7 +3,7 @@ * Architecture specific code used by dl-startup.c * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org> */ -asm( +__asm__( " .text\n" " .align 16\n" " .globl _start\n" diff --git a/ldso/ldso/i386/dl-sysdep.h b/ldso/ldso/i386/dl-sysdep.h index a8b1ab33a..a1613bea4 100644 --- a/ldso/ldso/i386/dl-sysdep.h +++ b/ldso/ldso/i386/dl-sysdep.h @@ -47,7 +47,7 @@ extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_ent static inline Elf32_Addr __attribute__ ((unused)) elf_machine_dynamic (void) { - register Elf32_Addr *got asm ("%ebx"); + register Elf32_Addr *got __asm__ ("%ebx"); return *got; } @@ -61,7 +61,7 @@ elf_machine_load_address (void) via the GOT to make sure the compiler initialized %ebx in time. */ extern int _dl_errno; Elf32_Addr addr; - asm ("leal _dl_start@GOTOFF(%%ebx), %0\n" + __asm__ ("leal _dl_start@GOTOFF(%%ebx), %0\n" "subl _dl_start@GOT(%%ebx), %0" : "=r" (addr) : "m" (_dl_errno) : "cc"); return addr; |