From 1ea166df67e4fa6b62fa3fa1ca03a990d0f45eba Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Thu, 11 Dec 2014 17:02:24 +0100 Subject: [PATCH] S/390: Get rid of assembler warning value truncated. --- ChangeLog | 5 +++++ sysdeps/s390/s390-32/dl-machine.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8ded7cb91e..d622ff0c48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-12-11 Stefan Liebler + + sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address): + Truncating assembler expression to a .long expression. + 2014-12-11 Andreas Schwab * elf/rtld.c (struct map_args): Constify str member. diff --git a/sysdeps/s390/s390-32/dl-machine.h b/sysdeps/s390/s390-32/dl-machine.h index 6780405573..72fb7fe141 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 - 0x80000000) & 0x00000000ffffffff\n" "2: l %0,4(1)\n" " ar %0,1\n" " al 1,0(1)\n"