From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12831 invoked by alias); 12 Oct 2002 00:02:39 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 12823 invoked from network); 12 Oct 2002 00:02:39 -0000 Received: from unknown (HELO smtp.superh.com) (65.219.1.204) by sources.redhat.com with SMTP; 12 Oct 2002 00:02:39 -0000 Received: from sh-us-ex01.us.w2k.superh.com (sh-us-ex01.us.superh.com [192.168.4.40]) by smtp.superh.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id g9BNs0N09399; Fri, 11 Oct 2002 16:54:00 -0700 (PDT) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C27182.965FB6DC" Subject: RE: [Patch] sh64: Handle SHmedia PC-relative relocs as dynamic relocs X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Fri, 11 Oct 2002 17:02:00 -0000 Message-ID: <287E4644B5249D449C56FA5409A874AE03C7B0@sh-us-ex01.us.w2k.superh.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: From: "Clarke, Stephen" To: Cc: "Stephen Clarke" X-SW-Source: 2002-10/txt/msg00257.txt.bz2 This is a multi-part message in MIME format. ------_=_NextPart_001_01C27182.965FB6DC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 1591 Seems this one has been overlooked thus far, so I'll take the opportunity to update it ... The original patch omitted the handling of pc-relative relocations in sh_elf_gc_sweep_hook, so I've added that. Since refcounting was introduced, it's necessary to handle some SHmedia absolute relocations in sh_elf_check_relocs, for plt refcounting when you're linking an absolute program to a shared library, so I've added those too, together with the corresponding additions to sh_elf_gc_sweep_hook. Without this absolute relocation plt refcounting you got a linker error, so I've added a test case for that (ld-sh/sh64/dsolink*), which in turn requires a mechanism to create a dso to link against. Kojima-san recently added this to ld-sh/rd-sh.exp, so I've duplicated his work in ld-sh/sh64/rd-sh64.exp. The updated patch is attached. The changelog info is: bfd: * elf32-sh.c (sh_elf_relocate_section): Handle SHmedia PC-relative relocations as dynamic relocations. (sh_elf_gc_sweep_hook): Handle SHmedia PC-relative relocations and SHmedia R_SH_IMM_xxx absolute relocations. (sh_elf_check_relocs): Likewise. * elf64-sh64.c (sh_elf64_relocate_section): Handle SHmedia PC-relative relocations as dynamic relocations. (sh_elf64_check_relocs): Likewise. ld/testsuite: * ld-sh/sh64/dsolink-0-dso.d, ld-sh/sh64/dsolink-1.d, ld-sh/sh64/dsolink-1.s, ld-sh/sh64/dsolinklib.s: New test. * ld-sh/sh64/rd-sh64.exp: Add the dso-creating functionality from ld-sh/rd-sh.exp. * ld-sh/sh64/shpcrel.d, ld-sh/sh64/shpcrel.s, ld-sh/sh64/shpcrel64.d, ld-sh/sh64/shpcrel64.s: New test. Steve. ------_=_NextPart_001_01C27182.965FB6DC Content-Type: application/x-gzip; name="pcrel-patch.gz" Content-Transfer-Encoding: base64 Content-Description: pcrel-patch.gz Content-Disposition: attachment; filename="pcrel-patch.gz" Content-length: 5059 H4sICOFlpz0AA3BjcmVsLXBhdGNoAO1ce3PbNhL/W/oUayeT+iHKJEU9Xbt1 /WjUk+2M5TSXSTIcioQs1hSpIyk/zu13vwXAp0TKdCQ7ycxx2poCFgtgd/Hb B8nKoigLkihIEkDfJ5MRseHQ0txrAj97/HdVZ79/9aYT4o6qujPeL5dLW0Cs YU0WPGyBDW+k4k/VJZajaz5RPaL7pmNvduCtZhsWgf7bMTFMrVx6dyggleab NwQCciT0QPPAuLe1saknm6vlUsj7Sle9W0Im6shxrucYQ4JvuZRibBsR0YXa f6t2T0/Vu7s70AaeY019kjOfPiL6Nd+Rh9P1zGtya3qkGmy9oeDWG0q8+Yby nNtH7rkLKsuxEp+oQ8vAXezQjewYKA3TvhZEAe+qRiWrT8L2cimzw8saYJmD qteBM3ILPvH86syUrsFlSO4mHTgwDPBHBH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