Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366387 - sci-libs/mpir some files contain writable and executable sections on amd64
Summary: sci-libs/mpir some files contain writable and executable sections on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 19:11 UTC by Agostino Sarubbo
Modified: 2011-08-15 09:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (mpir-2.2.1:20110507-205843.log,314.97 KB, text/plain)
2011-05-07 19:11 UTC, Agostino Sarubbo
Details
Ebuild fixing the issue. (mpir-2.3.1.ebuild,1.86 KB, application/octet-stream)
2011-06-10 17:37 UTC, Francisco Blas Izquierdo Riera (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2011-05-07 19:11:10 UTC
Created attachment 272423 [details]
Build log

$summary

 * QA Notice: The following files contain writable and executable sections
 *  Files with such sections will not work properly (or at all!) on some
 *  architectures/operating systems.  A bug should be filed at
 *  http://bugs.gentoo.org/ to make sure the issue is fixed.
 *  For more information, see http://hardened.gentoo.org/gnu-stack.xml
 *  Please include the following list of files in your report:
 *  Note: Bugs should be filed for the respective maintainers
 *  of the package in question and not hardened@g.o.
 * !WX --- --- usr/lib64/libmpir.a:divexact_by3c.o
 * !WX --- --- usr/lib64/libmpir.a:divexact_byfobm1.o
 * !WX --- --- usr/lib64/libmpir.a:divrem_2.o
 * !WX --- --- usr/lib64/libmpir.a:divrem_euclidean_qr_1.o
 * !WX --- --- usr/lib64/libmpir.a:divrem_euclidean_qr_2.o
 * !WX --- --- usr/lib64/libmpir.a:modexact_1c_odd.o
Comment 1 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2011-05-11 15:23:04 UTC
Will try making a patch then reassign back to tomka.
Comment 2 Thomas Kahle (RETIRED) gentoo-dev 2011-05-11 21:11:22 UTC
(In reply to comment #1)
> Will try making a patch then reassign back to tomka.

I'm confused why this still comes up. When you look at the ebuild you will see that we already implented the solution from the guide... Had no time to figure out what the remaining problem is.  Also there are no issues on x86 for me.
Comment 3 Thomas Kahle (RETIRED) gentoo-dev 2011-05-14 09:30:51 UTC
I just bumped to 2.3.1, upstream claims that this has some fixes for executable sections.  Please check on amd64.
Comment 4 Agostino Sarubbo gentoo-dev 2011-05-14 12:05:42 UTC
confirmed in 2.3.1, so in major version there are more files:


 * !WX --- --- usr/lib64/libmpir.a:add_n.o
 * !WX --- --- usr/lib64/libmpir.a:sub_n.o
 * !WX --- --- usr/lib64/libmpir.a:lshift.o
 * !WX --- --- usr/lib64/libmpir.a:divexact_by3c.o
 * !WX --- --- usr/lib64/libmpir.a:divexact_byfobm1.o
 * !WX --- --- usr/lib64/libmpir.a:divrem_2.o
 * !WX --- --- usr/lib64/libmpir.a:divrem_euclidean_qr_1.o
 * !WX --- --- usr/lib64/libmpir.a:divrem_euclidean_qr_2.o
 * !WX --- --- usr/lib64/libmpir.a:modexact_1c_odd.o
Comment 5 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2011-06-10 17:37:52 UTC
Created attachment 276555 [details]
Ebuild fixing the issue.

Looks that with the elf64 type around the anotations in the doc have become old this ebuild fixes the issue and I will update the doc later today.
Comment 6 Thomas Kahle (RETIRED) gentoo-dev 2011-08-13 12:53:07 UTC
Can somebody with an amd64 machine please test if this is fixed in 2.4.0?
Comment 7 Agostino Sarubbo gentoo-dev 2011-08-13 13:08:33 UTC
FIXED, 

@Thomas, can you clean .la files ?
Comment 8 Thomas Kahle (RETIRED) gentoo-dev 2011-08-15 09:29:46 UTC
(In reply to comment #7)
> FIXED, 
> 
> @Thomas, can you clean .la files ?

OK, fixed. Thanks.

+  15 Aug 2011; Thomas Kahle <tomka@gentoo.org> mpir-2.4.0.ebuild:
+  use autotools-utils.eclass
+