Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 261200 Details for
Bug 283470
sigaction() on static/x86_64 sets up invalid sa_restorer field
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Doing things well, forgot a few details :P
glibc-2.12-hardened-pie.patch (text/plain), 2.53 KB, created by
Francisco Blas Izquierdo Riera (RETIRED)
on 2011-01-31 23:59:26 UTC
(
hide
)
Description:
Doing things well, forgot a few details :P
Filename:
MIME Type:
Creator:
Francisco Blas Izquierdo Riera (RETIRED)
Created:
2011-01-31 23:59:26 UTC
Size:
2.53 KB
patch
obsolete
>2010-08-11 Magnus Granberg <zorry@gentoo.org> > > #332331 > * Makeconfig (+link): Set to +link-pie. > (+link-static): Change $(static-start-installed-name) to > S$(static-start-installed-name). > (+prector): Set to +prectorS. > (+postctor): Set to +postctorS. > >2011-01-21 Magnus Granberg <zorry@gentoo.org>, viona <vina@mailserver.eu>, klondike <klondike@xiscosoft.es> > > #283470 > * sysdeps/unix/sysv/linux/x86_64/sigaction.c fix the __restore_rt symbol > >--- libc/Makeconfig >+++ libc/Makeconfig >@@ -447,11 +447,12 @@ > $(common-objpfx)libc% $(+postinit),$^) \ > $(link-extra-libs) $(link-libc) $(+postctorS) $(+postinit) > endif >++link = $(+link-pie) > # Command for statically linking programs with the C library. > ifndef +link-static > +link-static = $(CC) -nostdlib -nostartfiles -static -o $@ \ > $(sysdep-LDFLAGS) $(LDFLAGS) $(LDFLAGS-$(@F)) \ >- $(addprefix $(csu-objpfx),$(static-start-installed-name)) \ >+ $(addprefix $(csu-objpfx),S$(static-start-installed-name)) \ > $(+preinit) $(+prector) \ > $(filter-out $(addprefix $(csu-objpfx),start.o \ > $(start-installed-name))\ >@@ -549,11 +550,10 @@ > ifeq ($(elf),yes) > +preinit = $(addprefix $(csu-objpfx),crti.o) > +postinit = $(addprefix $(csu-objpfx),crtn.o) >-+prector = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtbegin.o` >-+postctor = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtend.o` >-# Variants of the two previous definitions for linking PIE programs. > +prectorS = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtbeginS.o` > +postctorS = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtendS.o` >++prector = $(+prectorS) >++postctor = $(+postctorS) > +interp = $(addprefix $(elf-objpfx),interp.os) > endif > csu-objpfx = $(common-objpfx)csu/ >--- libc/sysdeps/unix/sysv/linux/x86_64/sigaction.c 2011-02-01 00:48:06.958626055 +0100 >+++ libc/sysdeps/unix/sysv/linux/x86_64/sigaction.c 2011-02-01 00:49:37.653626045 +0100 >@@ -40,7 +40,7 @@ > > /* Using the hidden attribute here does not change the code but it > helps to avoid warnings. */ >-extern void restore_rt (void) asm ("__restore_rt") attribute_hidden; >+extern void restore_rt (void) asm ("__restore_rt") __attribute__((__visibility__("hidden"))); > > > /* If ACT is not NULL, change the action for SIG to *ACT. >@@ -126,6 +126,7 @@ > /* `nop' for debuggers assuming `call' should not disalign the code. */ \ > " nop\n" \ > ".align 16\n" \ >+ ".globl __" #name "\n" \ > ".LSTART_" #name ":\n" \ > " .type __" #name ",@function\n" \ > "__" #name ":\n" \
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 283470
:
223227
|
242993
|
247070
|
260620
|
261195
|
261197
|
261199
| 261200 |
264219
|
280985
|
280987
|
280989