From patchwork Sun Mar 23 22:07:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 332935 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A96B92C00C2 for ; Mon, 24 Mar 2014 09:07:35 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 90F8993522; Sun, 23 Mar 2014 22:07:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oFlG8Y416JO8; Sun, 23 Mar 2014 22:07:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CECBD93460; Sun, 23 Mar 2014 22:07:31 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 9D8691BFAAE for ; Sun, 23 Mar 2014 22:07:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9815D3076E for ; Sun, 23 Mar 2014 22:07:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OqvchsCnBu4b for ; Sun, 23 Mar 2014 22:07:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by silver.osuosl.org (Postfix) with ESMTPS id C57052F6A4 for ; Sun, 23 Mar 2014 22:07:29 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id b8so3056094lan.40 for ; Sun, 23 Mar 2014 15:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=YaOAWuRdZqyRQLztKKhbD04OjOVeyRSZ4fFO9WGeMYk=; b=bJ8q0SHhdCMIMbFU7IucEZh20rgK6RSEtVGdSlDCQnjJB76g58dL3plqM+3AKDUzH0 B6zoSjdk7jy5pNmrFMo6Pe3wz2EbqYZAp0J7D5cDJbYzqudOdXbe7duQhdE+9m6i9fGK xdMCBjeTRntZzFXfcMajoZ/BzCUtl7ZyAViwU7GMGL2mn02NAzNj/k981T/VP9YuCMwx WA40FV/Y5lCv2fvVCFKw54byQdwBY7vTwVZBWE+oFFYEcbpWzQQO26AZgK3RrZZvFuXR cMzz9+7yVnnmmTIFcrMmLSKYP86aFsiNsxT7MMKJW717x+BysPvyaB2JMtL0uSgfZn8V Xoug== X-Received: by 10.152.18.170 with SMTP id x10mr27975lad.55.1395612447408; Sun, 23 Mar 2014 15:07:27 -0700 (PDT) Received: from octofox.metropolis ([188.134.19.124]) by mx.google.com with ESMTPSA id v20sm8157880lbi.24.2014.03.23.15.07.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Mar 2014 15:07:26 -0700 (PDT) From: Max Filippov To: uclibc@uclibc.org, linux-xtensa@linux-xtensa.org Subject: [PATCH] xtensa: add missing .literal_position directives Date: Mon, 24 Mar 2014 02:07:15 +0400 Message-Id: <1395612435-4061-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 Cc: Marc Gauthier X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: uclibc-bounces@uclibc.org This addition allows building uClibc with -mtext-section-literals Signed-off-by: Max Filippov --- ldso/ldso/xtensa/dl-startup.h | 1 + ldso/ldso/xtensa/resolve.S | 1 + libc/string/xtensa/strcmp.S | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ldso/ldso/xtensa/dl-startup.h b/ldso/ldso/xtensa/dl-startup.h index 45af82d..b135a4c 100644 --- a/ldso/ldso/xtensa/dl-startup.h +++ b/ldso/ldso/xtensa/dl-startup.h @@ -11,6 +11,7 @@ __asm__ ( " .text\n" " .align 4\n" + " .literal_position\n" " .global _start\n" " .type _start, @function\n" " .hidden _start\n" diff --git a/ldso/ldso/xtensa/resolve.S b/ldso/ldso/xtensa/resolve.S index 61c2c5d..d1ae8aa 100644 --- a/ldso/ldso/xtensa/resolve.S +++ b/ldso/ldso/xtensa/resolve.S @@ -27,6 +27,7 @@ .text .align 4 + .literal_position .global _dl_linux_resolve .type _dl_linux_resolve, @function _dl_linux_resolve: diff --git a/libc/string/xtensa/strcmp.S b/libc/string/xtensa/strcmp.S index d3d72e0..8ed1ed0 100644 --- a/libc/string/xtensa/strcmp.S +++ b/libc/string/xtensa/strcmp.S @@ -34,13 +34,14 @@ #define MASK4 0x40404040 + .text + .align 4 + .literal_position .literal .Lmask0, MASK0 .literal .Lmask1, MASK1 .literal .Lmask2, MASK2 .literal .Lmask3, MASK3 .literal .Lmask4, MASK4 - - .text ENTRY (strcmp) /* a2 = s1, a3 = s2 */