From c6fbeda2a182285abcd650615d46f0558ef1cf69 Mon Sep 17 00:00:00 2001 From: Vladimir Smirnov Date: Tue, 17 Jul 2012 10:45:23 +0400 Subject: [PATCH 1/2] Fix writable and executable sections in: * RWX --- --- usr/bin/phantom * !WX --- --- usr/lib/libpd-bq.s.a:bq_cont_supp.s.o * !WX --- --- usr/lib/libpd-bq.a:bq_cont_supp.o Signed-off-by: Vladimir Smirnov --- pd/bq/bq_cont_supp.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pd/bq/bq_cont_supp.S b/pd/bq/bq_cont_supp.S index 0d5a165..eb1baac 100644 --- a/pd/bq/bq_cont_supp.S +++ b/pd/bq/bq_cont_supp.S @@ -4,6 +4,10 @@ // This library may be distributed under the terms of the GNU LGPL 2.1. // See the file ‘COPYING’ or ‘http://www.gnu.org/licenses/lgpl-2.1.html’. +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif + .file "bq_cont_supp.S" #if defined(__i386__) From acd87c4775deef2d6e7e910f7e3e7905f0b7a6be Mon Sep 17 00:00:00 2001 From: Vladimir Smirnov Date: Tue, 17 Jul 2012 14:02:45 +0400 Subject: [PATCH 2/2] GCC 4.7 support: * Silenced warning in test/bq/align.C * Modified version pragma Signed-off-by: Vladimir Smirnov --- pd/bq/bq_cont.C | 2 +- test/bq/align.C | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pd/bq/bq_cont.C b/pd/bq/bq_cont.C index 3d5fbed..73bee26 100644 --- a/pd/bq/bq_cont.C +++ b/pd/bq/bq_cont.C @@ -65,7 +65,7 @@ unsigned int bq_spec_reserve() throw() { #if \ __gcc_version_current >= __gcc_version(3, 3, 0) && \ - __gcc_version_current < __gcc_version(4, 7, 0) && \ + __gcc_version_current < __gcc_version(4, 8, 0) && \ !defined(__arm__) struct __cxa_eh_globals { diff --git a/test/bq/align.C b/test/bq/align.C index 376c979..df9e188 100644 --- a/test/bq/align.C +++ b/test/bq/align.C @@ -32,6 +32,7 @@ bq_spec_decl(int, sp2); char md[16]; +#pragma GCC diagnostic ignored "-Wuninitialized" void job(void *) { int k; char local_md[16]; @@ -40,6 +41,7 @@ void job(void *) { md[k] ^= local_md[k]; } } +#pragma GCC diagnostic pop bq_cont_count_t cont_count(3);