bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't build glibc 2.3.1 with gcc 3.2.1


From: Paul Jarc
Subject: Re: can't build glibc 2.3.1 with gcc 3.2.1
Date: Tue, 10 Dec 2002 16:06:37 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

I wrote:
> (echo '#include <sysdep.h>'; \
>  echo 'PSEUDO (__kill, kill, 2)'; \
>  echo '       ret'; \
>  echo 'PSEUDO_END(__kill)'; \
>  echo 'libc_hidden_def (__kill)'; \
>  echo 'weak_alias (__kill, kill)'; \
>  echo 'libc_hidden_weak (kill)'; \
> ) | gcc -c [...] -x assembler-with-cpp -o 
> /home/prj/src/spf/glibc-2.3.1-build/signal/kill.os -
> {standard input}: Assembler messages:
> {standard input}:46: Warning: rest of line ignored; first ignored character 
> is `1'
...

More info: the preprocessed assembly (omitting blank lines and #line
droppings) looks like this:

.text;  1: .stabs  "" ,100,0,0,1b;      1: .stabs  "__kill" ,100,0,0,1b;        
.globl     __kill    ;  .type     __kill     , @function ;      .align 1<< 4  ; 
.stabs "int:t(0,1)=r(0,1);-2147483648;2147483647;",128,0,0,0;   .stabs 
"__kill:F(0,1)",36,0,0,    __kill    ;      __kill:              movl %ebx, 
%edx;        movl  8 (%esp), %ecx; movl   8 -4 (%esp), %ebx;         movl $37   
  , %eax;    int $0x80        ; movl %edx, %ebx     ;        cmpl $-4095, %eax; 
     jae 0f ;        .Lpseudo_end  : 
 ret
0:pushl %ebx;   .section .gnu.linkonce.t. 1 .get_pc_thunk. bx ,"ax",@progbits;  
.globl 1 .get_pc_thunk. bx ;    .hidden 1 .get_pc_thunk. bx ;   .type 1 
.get_pc_thunk. bx ,@function;   1 .get_pc_thunk. bx :   movl (%esp), %ebx ;     
ret;    .previous;      call 1 .get_pc_thunk. bx  ;     addl 
$_GLOBAL_OFFSET_TABLE_, %ebx;      xorl %edx, %edx;        subl %eax, %edx;     
   pushl %edx;      ;      call   __errno_location    @PLT;         ;      popl 
%ecx;      popl %ebx;      movl %ecx, (%eax);      orl $-1, %eax;  jmp 
.Lpseudo_end  ;     .size    __kill   ,.-   __kill   ;      1: .stabs 
"",36,0,0,1b-   __kill   ;   
.globl     __GI___kill      ;   .set    __GI___kill     ,    __kill        
.weak    kill    ;         kill    =   __kill    
.globl     __GI_kill       ;    .set    __GI_kill      ,     kill          

I don't know assembly; is the problem obvious to anyone?


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]