bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/11812] Unused .got.plt section generated by linker


From: hjl dot tools at gmail dot com
Subject: [Bug ld/11812] Unused .got.plt section generated by linker
Date: 23 Sep 2010 04:02:29 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2010-09-23 
04:02 -------
(In reply to comment #4)
> Here's a minimal version that demonstrates the wrong value.
> 
>         .text
>         .globl _start
> _start:
>         leaq _DYNAMIC(%rip), %rsi
>         movq _GLOBAL_OFFSET_TABLE_(%rip), %rcx
>         subq %rcx, %rsi
>         .globl breakpoint
> breakpoint:
>         movq $60, %rax
>         movq %rsi, %rdi
>         andq $63, %rdi
>         syscall
>         .size _start,.-_start
> 
> The exit code should be zero (load address 64-byte aligned).  But actually I 
> get
> 9.  You might get zero, but check %rsi at *breakpoint.
> 

Does this work if there are no GOT/PLT sections at all?

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11812

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



reply via email to

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