* PIC and gas-940916
[not found] <199409161529.LAA17312@cais.cais.com>
@ 1994-09-16 9:37 ` H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 1994-09-16 9:37 UTC (permalink / raw)
To: Eric Youngdale; +Cc: gas2
Hi,
I fixed a typo and added linuxelf. While compiling the Linux C library
with ELF, I got many
lockf.s: Assembler messages:
lockf.s:29: Error: expression too complex for fixup
lockf.s:30: Error: expression too complex for fixup
lockf.s:31: Error: expression too complex for fixup
lockf.s:32: Error: expression too complex for fixup
BTW, I configure gas-940916 with
configure --prefix=/usr i486-linuxelf
H.J.
-----
*** gas/configure.old Fri Sep 16 11:27:32 1994
--- gas/configure Fri Sep 16 11:41:11 1994
***************
*** 982,994 ****
# people who are not cross-compiling but are compiling cross-assemblers.
echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&4
if test "${host}" = "${target}"; then
cross_gas=yes
cat >> confdefs.h <<\EOF
#define CROSS_COMPILE 1
EOF
- else
- cross_gas=no
fi
echo "$ac_t""$cross_gas" 1>&4
--- 982,994 ----
# people who are not cross-compiling but are compiling cross-assemblers.
echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&4
if test "${host}" = "${target}"; then
+ cross_gas=no
+ else
cross_gas=yes
cat >> confdefs.h <<\EOF
#define CROSS_COMPILE 1
EOF
fi
echo "$ac_t""$cross_gas" 1>&4
*** ld/configure.in.old Fri Sep 16 10:59:15 1994
--- ld/configure.in Fri Sep 16 12:20:25 1994
***************
*** 70,76 ****
i[345]86-*-bsd) ld_target=i386-bsd ;;
i[345]86-*-bsd386) ld_target=i386-bsd ;;
i[345]86-*-aout) ld_target=i386-aout ;;
! i[345]86-*-linux) ld_target=i386-linux ;;
i[345]86-*-sysv4*) ld_target=i386-elf ;;
i[345]86-*-unixware) ld_target=i386-elf ;;
i[345]86-*-netware) ld_target=i386-elf ;;
--- 70,77 ----
i[345]86-*-bsd) ld_target=i386-bsd ;;
i[345]86-*-bsd386) ld_target=i386-bsd ;;
i[345]86-*-aout) ld_target=i386-aout ;;
! i[345]86-*-linux|i[345]86-*-linuxelf)
! ld_target=i386-linux ;;
i[345]86-*-sysv4*) ld_target=i386-elf ;;
i[345]86-*-unixware) ld_target=i386-elf ;;
i[345]86-*-netware) ld_target=i386-elf ;;
------
.file "lockf.c"
.version "01.01"
gcc2_compiled.:
.text
.align 16
.globl lockf
.type lockf,@function
lockf:
pushl %ebp
movl %esp,%ebp
subl $16,%esp
pushl %esi
pushl %ebx
call .L24
.L24:
popl %ebx
addl $_GLOBAL_OFFSET_TABLE_+[.-.L24],%ebx
movl 8(%ebp),%esi
movl 12(%ebp),%edx
movl 16(%ebp),%ecx
cmpl $3,%edx
ja .L21
movl %ebx,%eax
subl .L22@GOTOFF(%ebx,%edx,4),%eax
jmp *%eax
.align 16
.align 4
.L22:
.long _GLOBAL_OFFSET_TABLE_+[.-.L18]
.long _GLOBAL_OFFSET_TABLE_+[.-.L19]
.long _GLOBAL_OFFSET_TABLE_+[.-.L20]
.long _GLOBAL_OFFSET_TABLE_+[.-.L14]
.align 16
.L14:
leal -16(%ebp),%eax
pushl %eax
pushl $5
pushl %esi
call fcntl@PLT
addl $12,%esp
testl %eax,%eax
jge .L15
movl $-1,%eax
jmp .L12
.align 16
.L15:
cmpw $2,-16(%ebp)
je .L17
call getpid@PLT
cmpl %eax,-4(%ebp)
jne .L16
.L17:
xorl %eax,%eax
jmp .L12
.align 16
.L16:
movl errno@GOT(%ebx),%eax
movl $13,(%eax)
movl $-1,%eax
jmp .L12
.align 16
.L18:
movw $2,-16(%ebp)
movl $6,%edx
jmp .L13
.align 16
.L19:
movw $1,-16(%ebp)
movl $7,%edx
jmp .L13
.align 16
.L20:
movw $1,-16(%ebp)
movl $6,%edx
jmp .L13
.align 16
.L21:
movl errno@GOT(%ebx),%eax
movl $22,(%eax)
movl $-1,%eax
jmp .L12
.align 16
.L13:
movw $1,-14(%ebp)
movl $0,-12(%ebp)
movl %ecx,-8(%ebp)
leal -16(%ebp),%eax
pushl %eax
pushl %edx
pushl %esi
call fcntl@PLT
.L12:
leal -24(%ebp),%esp
popl %ebx
popl %esi
movl %ebp,%esp
popl %ebp
ret
.Lfe1:
.size lockf,.Lfe1-lockf
.ident "GCC: (GNU) 2.6.0 snapshot 940913"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-09-16 9:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <199409161529.LAA17312@cais.cais.com>
1994-09-16 9:37 ` PIC and gas-940916 H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).