From patchwork Thu Nov 20 16:30:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 3812 Received: (qmail 22019 invoked by alias); 20 Nov 2014 16:30:41 -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 22007 invoked by uid 89); 20 Nov 2014 16:30:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: libc-alpha@sourceware.org From: Stefan Liebler Subject: S/390: Get rid of assembler warning value truncated. Date: Thu, 20 Nov 2014 17:30:24 +0100 Lines: 45 Message-ID: Mime-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 Hi, this patch gets rid of Assembler message: sysdeps/s390/s390-32/dl-machine.h:75: Warning: value 0xffffffff7fffffea truncated to 0x7fffffea in static inline function elf_machine_load_address, which is only used in _dl_start function in elf/rtld.c. The value was subtracted by 0x80000000 and is now anded with 0x7fffffff. This patch does not change anything in ld.so. Tested on s390. Ok to commit? Bye Stefan --- 2014-11-20 Stefan Liebler sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address): Use anding 0x7fffffff instead of subtracting 0x80000000. diff --git a/sysdeps/s390/s390-32/dl-machine.h b/sysdeps/s390/s390-32/dl-machine.h index 527233b..74939b8 100644 --- a/sysdeps/s390/s390-32/dl-machine.h +++ b/sysdeps/s390/s390-32/dl-machine.h @@ -72,7 +72,7 @@ elf_machine_load_address (void) asm( " bras 1,2f\n" "1: .long _GLOBAL_OFFSET_TABLE_ - 1b\n" - " .long _dl_start - 1b - 0x80000000\n" + " .long (_dl_start - 1b) & 0x7fffffff\n" "2: l %0,4(1)\n" " ar %0,1\n" " al 1,0(1)\n"