On Thursday April 5 2007 20:32, Jan Dvořák wrote:
> Robert Connolly wrote:
> > '--warn-shared-textrel --fatal-warnings' can be placed beside '-pie" in
> > the link specs, however this will also make mktemp(3) warnings fatal.
> > ld's source can be manipulated to make warn-shared-textrel default to
> > being fatal, while not affecting other warnings. Each has its own
> > advantages. Making all linker warnings fatal has the advantage of forcing
> > us to go out of our way to use mktemp(3), but I don't know what else is
> > affected.
>
> Better hardcode shared-textrel being error. And an option to cancel this
> behaviour for testing. Let mktemp be, it is not used by anything
> critical, as far as I remember.

Altlinux has a patch, binutils-2.17.50.0.3-alt-defaults.patch, which 
adds --no-warn-shared-textrel and makes --warn-shared-textrel the default. 
Then adding error_return after the warning is printed (in bfd/elflink.c) 
should do the trick, and it shouldn't interfear with the test suite.

Done like this, the PR4304 patch would not be needed.

robert
-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to