From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by sourceware.org (Postfix) with ESMTP id BF2813858D35 for ; Wed, 29 Jul 2020 10:05:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BF2813858D35 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-113-8uynZaXYOq6aOw8mguuwwg-1; Wed, 29 Jul 2020 06:05:01 -0400 X-MC-Unique: 8uynZaXYOq6aOw8mguuwwg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 92B4A8005B0; Wed, 29 Jul 2020 10:05:00 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-113-29.ams2.redhat.com [10.36.113.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 099EC6FEC6; Wed, 29 Jul 2020 10:04:55 +0000 (UTC) From: Florian Weimer To: Szabolcs Nagy Cc: jeremy.linton@arm.com, Jakub Jelinek , Jeff Law , Carlos O'Donell , libc-alpha@sourceware.org Subject: Re: [PATCH] aarch64: update NEWS about branch protection References: <20200729080850.26078-1-szabolcs.nagy@arm.com> <87bljyspte.fsf@oldenburg2.str.redhat.com> <20200729084930.GS7127@arm.com> <87lfj2r8z4.fsf@oldenburg2.str.redhat.com> <20200729091734.GT7127@arm.com> Date: Wed, 29 Jul 2020 12:04:54 +0200 In-Reply-To: <20200729091734.GT7127@arm.com> (Szabolcs Nagy's message of "Wed, 29 Jul 2020 10:17:34 +0100") Message-ID: <878sf2r60p.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2020 10:05:05 -0000 * Szabolcs Nagy: >> Are there any ELF notes I should watch out for? > > readelf should show > > GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0 Properties: AArch64 feature: BTI > > (PAC may be missing in some libgcc asm, that's > fixed up in gcc-trunk, but it's harmless.) Thanks. It looks like with the flags in CFLAGS, the notes are indeed there in some cases, because RPM debugedit chokes on them: explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/glibc-2.31.9000-23.fc33.aarch64/usr/bin/gencat extracting debug info from /builddir/build/BUILDROOT/glibc-2.31.9000-23.fc33.aarch64/usr/bin/gencat Failed to update file: invalid section entry size I'll try to figure out what is going on there. It's a bit suspicious that this is the first dynamically linked binary, so maybe the notes are missing from the shared objects and statically linked binaries still. Thanks, Florian