From owner-freebsd-bugs@freebsd.org Fri Aug 11 02:13:19 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7CFACCFE076 for ; Fri, 11 Aug 2017 02:13:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6A5637F61C for ; Fri, 11 Aug 2017 02:13:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7B2DJQ5040709 for ; Fri, 11 Aug 2017 02:13:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221107] -r322109 and -r322210 (so clang 5) TARGET_ARCH=powerpc agp.kld or agp.kld gets: R_PPC_PLTREL24 reloc against local symbol; could not read symbols: Bad value Date: Fri, 11 Aug 2017 02:13:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2017 02:13:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221107 --- Comment #6 from Mark Millard --- Using the agp example: Section Headers: [Nr] Name Type Addr Off Size ES Lk Inf Al Flags . . . [35] .symtab SYMTAB 00000000 025418 000b40 10 36 108 4 [00000000]:=20 is related to: r_symndx =3D ELF32_R_SYM (rel->r_info); if (r_symndx < symtab_hdr->sh_info) h =3D NULL; else=20=20 where for the agp example: r_symndx =3D=3D 0x49 (73 decimal) for agp_find_caps. So r_symndx < 108 (if 108 is the sh_info field value). Note that in agp.o : 58: 0000000000000000 172 FUNC GLOBAL DEFAULT 2 agp_find_caps but in agp.kld : 73: 0000000000000000 172 FUNC LOCAL DEFAULT 1 agp_find_caps For the aha example: [34] .symtab SYMTAB 00000000 020a54 000930 10 35 70 4 [00000000]:=20 So 0x3e =3D=3D 62 for aha_alloc and 62 < 70. Note that in aha.o : 44: 0000000000000000 96 FUNC GLOBAL DEFAULT 2 aha_alloc but in aha.kld : 62: 0000000000000000 96 FUNC LOCAL DEFAULT 1 aha_alloc --=20 You are receiving this mail because: You are the assignee for the bug.=