From: "René Rhéaume" <rene.rheaume@gmail.com>
To: gentoo-hardened@lists.gentoo.org
Subject: Re: [gentoo-hardened] removing .text relocations from mplayer and xine-lib
Date: Mon, 30 May 2005 12:49:09 -0400 [thread overview]
Message-ID: <35572ca805053009496fcff614@mail.gmail.com> (raw)
In-Reply-To: <1117387490.8036.18.camel@localhost>
I found out symlinking libtool-nofpic to libtool (which produces PIC
binaries) eliminates most of the relocations. I am able to build on
Gentoo either outside Portage or using my custom ebuild.
Just add "use x86 && has_pic && ln -sf libtool ${S}/libtool-nofpic"
right after econf. You can also comment RESTRICT="nostrip" in the
ebuild and add "strict" to your FEATURES to get the list of the
remaining TEXTREL binaries, which are on my system:
$(get-libdir)/xine/plugins/${PV}/post/xineplug_post_{planar,tvtime}.so
$(get-libdir)/xine/plugins/${PV}/xineplug_decode_{ff,w32dll,qt}.so
Feedback from other architectures is appreciated.
Also, it seems that "use x86 && has_pic && append-flags -UHAVE_MMX" is
not needed. I can build fine either with or without.
*This paragraph is more a note to myself, but can be interesting for
those with older gcc versions*
I also tried this symlinking trick on my half-Mandr* install and got
two build errors (make -k). It is probably a bug from that old
gcc-3.2-1mdk I get as I already have to patch xine-lib to disable SIMD
code generation in FAAD code even when I generate non-PIC code.
Faulty files are:
${S}/src/libffmpeg/libavcodec/i386/mpegvideo_mmx_template.c
${S}/src/libffmpeg/libavcodec/libpostproc/postprocess_template.c
Error message: can't find a register in class `GENERAL_REGS' while
reloading `asm'
OS Specs:
* Gentoo 2004.3, x86, hardened, µclibc 0.9.27, running kernel
2.4.30-hardened-r1, with Hardened GCC 3.3.5-r1
* half-Mandr* 9.0, i586, glibc 2.2.5, running kernel 2.4.28-19rrsecure
(lck+grsec+i2c+security fixes, mainly), with GCC 3.2-1mdk
--
gentoo-hardened@gentoo.org mailing list
next prev parent reply other threads:[~2005-05-30 16:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-29 15:27 [gentoo-hardened] removing .text relocations from mplayer and xine-lib René Rhéaume
2005-05-29 17:24 ` Ned Ludd
2005-05-30 16:49 ` René Rhéaume [this message]
2005-06-02 12:42 ` Peter S. Mazinger
2005-06-04 15:31 ` René Rhéaume
2005-06-09 12:43 ` Peter S. Mazinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=35572ca805053009496fcff614@mail.gmail.com \
--to=rene.rheaume@gmail.com \
--cc=gentoo-hardened@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox