From nobody Wed Dec 15 04:36:40 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 72B9B18E3AAD; Wed, 15 Dec 2021 04:36:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDMs51LXzz3Gv7; Wed, 15 Dec 2021 04:36:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0EBB215F87; Wed, 15 Dec 2021 04:36:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BF4aePD047810; Wed, 15 Dec 2021 04:36:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BF4aeFC047809; Wed, 15 Dec 2021 04:36:40 GMT (envelope-from git) Date: Wed, 15 Dec 2021 04:36:40 GMT Message-Id: <202112150436.1BF4aeFC047809@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: d752d10e5383 - main - cross-build: Add __weak_symbol definition for libdwarf bootstrap List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d752d10e53839ad0654c9c564c6ef6c6e462c96d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639543001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3jJPePINNjcmR8dczl3L0cbYPb0NYVYxiXD5AGHP/2M=; b=H94Kt5RoT0koEH6Qwd73XPTaFeP57CFEdIS8z2RHZZHCKZkkSE8+tvHCS3hXNJy2pqSwto 0v5T6KThLJUQtmQwIs+PQMI1ErMeto6Px1rivs6Kud9x6v6e3O7xiuIRdegpOfOKkSoDdt EwZjSbkRoK3RTNCcahvUnP4o6Raf4KET9u53g3rScqc13ECP/v7f8bNSVeH0uuH1SmSSJx UE3FtjvCFMUvCYXrCVGYplWTjvRDITfzNLeg5XLxkXpk+Yk7BYklQYywOnlwNlP0TNK4J8 NUXkgdOuUWbNovuXogzz+oMDn0QQMUxkUiyll0AO5kpPluHMQokwZ3GcF40X8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639543001; a=rsa-sha256; cv=none; b=gHBahLjFwVHGDgdhJsjey2n8MbQGJwtiBOMspt3bNlbHBT22pdVEkYr7vmf8SgJudHOc98 4SWUjkInDYc8JWNL0BNPhOb89feJ5crdxEeJvjh/e35NKkk515HdYLRF+4R4ZuuntlEZ1m IXGPgavGYA1QqjgEq4YurssjlOlgsT8aa8kQKZxMdK7HTqxfSTE8NplrlZH1C/UMjNYwmM nvcshy4JmATw3UGnfx0QuD998dbUMnuzTymUJ3uzYmtCyR4mFWg4oW+DMeWcxrD7T7HGJj TL13wcEPAu3jsxS26sahbOOYQkDe0fpRAMPnIAp9X/9d+WhqEmZCSRgWLrFuAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=d752d10e53839ad0654c9c564c6ef6c6e462c96d commit d752d10e53839ad0654c9c564c6ef6c6e462c96d Author: Jessica Clarke AuthorDate: 2021-12-15 04:36:11 +0000 Commit: Jessica Clarke CommitDate: 2021-12-15 04:36:11 +0000 cross-build: Add __weak_symbol definition for libdwarf bootstrap Fixes: 3aa0bc89c6a1 ("libdwarf: Add a weak uncompress() symbol") MFC after: 1 week --- tools/build/cross-build/include/common/sys/cdefs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/build/cross-build/include/common/sys/cdefs.h b/tools/build/cross-build/include/common/sys/cdefs.h index 6d62333bcffe..d69e4369e01e 100644 --- a/tools/build/cross-build/include/common/sys/cdefs.h +++ b/tools/build/cross-build/include/common/sys/cdefs.h @@ -109,6 +109,9 @@ #define __predict_false(exp) __builtin_expect((exp), 0) #endif +#ifndef __weak_symbol +#define __weak_symbol __attribute__((__weak__)) +#endif #ifndef __weak_reference #ifdef __ELF__ #define __weak_reference(sym, alias) \