From patchwork Sun Sep 27 13:26:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marcin_Ko=C5=9Bcielnicki?= X-Patchwork-Id: 8863 Received: (qmail 88075 invoked by alias); 27 Sep 2015 13:26:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 88059 invoked by uid 89); 27 Sep 2015 13:26:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: xyzzy.0x04.net From: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= To: libc-alpha@sourceware.org Cc: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= Subject: [PATCH][BZ 18960] setlocale.c: Mark *_used symbols as unaligned. Date: Sun, 27 Sep 2015 15:26:25 +0200 Message-Id: <1443360385-20079-1-git-send-email-koriakin@0x04.net> This ensures that compiler doesn't get the values of these symbols using instructions that have alignment requirements (eg. larl on s390). --- locale/setlocale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/setlocale.c b/locale/setlocale.c index ead030d..028496d 100644 --- a/locale/setlocale.c +++ b/locale/setlocale.c @@ -35,7 +35,7 @@ Also use a weak reference for the _nl_current_CATEGORY thread variable. */ # define DEFINE_CATEGORY(category, category_name, items, a) \ - extern char _nl_current_##category##_used; \ + extern char _nl_current_##category##_used __attribute__((__aligned__(1))); \ weak_extern (_nl_current_##category##_used) \ weak_extern (_nl_current_##category) # include "categories.def"