Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 348408 Details for
Bug 469962
sys-apps/rng-tools-4-r5 - TEXTREL in usr/sbin/rngd due to rdrand_asm.S
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adding propper PIC support to the rdrand code.
add-pic-to-rdrand.patch (text/plain), 1.25 KB, created by
Francisco Blas Izquierdo Riera (RETIRED)
on 2013-05-15 16:58:24 UTC
(
hide
)
Description:
Patch adding propper PIC support to the rdrand code.
Filename:
MIME Type:
Creator:
Francisco Blas Izquierdo Riera (RETIRED)
Created:
2013-05-15 16:58:24 UTC
Size:
1.25 KB
patch
obsolete
>--- rdrand_asm.S.orig 2013-05-15 18:36:30.143681857 +0200 >+++ rdrand_asm.S 2013-05-15 18:48:13.372698103 +0200 >@@ -49,6 +49,7 @@ > ret > ENDPROC(x86_rdrand_nlong) > >+#define INIT_PIC() > #define SETPTR(var,ptr) leaq var(%rip),ptr > #define PTR0 %rdi > #define PTR1 %rsi >@@ -84,7 +85,16 @@ > ret > ENDPROC(x86_rdrand_nlong) > >+#if defined(__PIC__) >+#undef __i686 /* gcc builtin define gets in our way */ >+#define INIT_PIC() \ >+ call __i686.get_pc_thunk.bx ; \ >+ addl $_GLOBAL_OFFSET_TABLE_, %ebx >+#define SETPTR(var,ptr) leal (var)@GOTOFF(%ebx),ptr >+#else >+#define INIT_PIC() > #define SETPTR(var,ptr) movl $(var),ptr >+#endif > #define PTR0 %eax > #define PTR1 %edx > #define PTR2 %ecx >@@ -101,6 +111,7 @@ > movl 8(%ebp), %eax > movl 12(%ebp), %edx > #endif >+ INIT_PIC() > > SETPTR(aes_round_keys, PTR2) > >@@ -166,6 +177,17 @@ > #endif > ret > ENDPROC(x86_aes_mangle) >+ >+#if defined(__i386__) && defined(__PIC__) >+ .section .gnu.linkonce.t.__i686.get_pc_thunk.bx,"ax",@progbits >+.globl __i686.get_pc_thunk.bx >+ .hidden __i686.get_pc_thunk.bx >+ .type __i686.get_pc_thunk.bx,@function >+__i686.get_pc_thunk.bx: >+ movl (%esp), %ebx >+ ret >+#endif >+ > /* > * AES round keys for an arbitrary key: > * 00102030405060708090A0B0C0D0E0F0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 469962
:
348396
|
348398
|
348408
|
348418
|
348420