From patchwork Sat Apr 21 03:36:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 26886 Received: (qmail 128235 invoked by alias); 21 Apr 2018 03:36:26 -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 128225 invoked by uid 89); 21 Apr 2018 03:36:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=HX-Received:10.99.120.135, H*RU:sk:o123sm1, H*r:sk:76.2018, Hx-spam-relays-external:sk:o123sm1 X-HELO: mail-pg0-f42.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=yo5VQyyxuyAVnzvz09ww61MVBoUIiqeITb17S37VRso=; b=F9QJMo5Nsj/5OwlFkYATFsgMqIiQ8xr0RsgcFTbCDRTIumy98IBHiVS8R/L5AXTB1t rUNfvZuox+a2GgIs6Ll94nWeItzX8bruOFrCMrUdK9lDEzM1bB1JGBKcBp2bsb3CcGTk o/maxNMB9Mo3sGjbzjV2ZVP+MJlDXKMBsFNqCifzXcaTI+N0cVKcPopEnPoJW6jaiSCP 9S8/NH/oQ2xJtB8rkmtduqlk+ml4gusxLYevztPj57hfJeyioSOXG5J0LLiJHQcVUfG8 oOHzHd4psdX0EtTo9yN77NGS8xP3mbAMV4v0AgjwpNMB99AdFJOH0RUULF+ZSpvqAVXw zlIg== X-Gm-Message-State: ALQs6tCaDNVS1a0B2hsaghW718BaboL6nKhu81nacf2PNsh4xVJMUHqX SfDhv8fGLSeoJZ8IbAF61mg= X-Google-Smtp-Source: AIpwx495EoXurnC7JA0mS5Nk3/hwc7wKlBII4p/GpiTd1CCjV6OMq6PhbMtSj7qFkOF0owZXXOo1bw== X-Received: by 10.99.120.135 with SMTP id t129mr10349252pgc.382.1524281783350; Fri, 20 Apr 2018 20:36:23 -0700 (PDT) Date: Sat, 21 Apr 2018 13:06:17 +0930 From: Alan Modra To: libc-alpha@sourceware.org Cc: Carlos O'Donell Subject: R_PARISC_TLS_DTPOFF32 reloc handling Message-ID: <20180421033617.GS3684@bubble.grove.modra.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) This is the trivial patch mentioned in https://sourceware.org/ml/binutils/2018-04/msg00237.html OK to apply? Reviewed-by: Carlos O'Donell diff --git a/ChangeLog b/ChangeLog index 6b17507..cda8bb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-04-21 Alan Modra + + * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add + R_PARISC_TLS_DTPOFF32 reloc addend. + 2018-04-20 Joseph Myers * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC] diff --git a/sysdeps/hppa/dl-machine.h b/sysdeps/hppa/dl-machine.h index 3a57c7e..5f4e0d3 100644 --- a/sysdeps/hppa/dl-machine.h +++ b/sysdeps/hppa/dl-machine.h @@ -690,7 +690,7 @@ elf_machine_rela (struct link_map *map, /* During relocation all TLS symbols are defined and used. Therefore the offset is already correct. */ if (sym != NULL) - *reloc_addr = sym->st_value; + *reloc_addr = sym->st_value + reloc->r_addend; return; case R_PARISC_TLS_TPREL32: