From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by sourceware.org (Postfix) with ESMTPS id B5A9D38CEB6A for ; Wed, 8 Jun 2022 13:29:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B5A9D38CEB6A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id q1so41501038ejz.9 for ; Wed, 08 Jun 2022 06:29:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6ZB4ddnI3lYphDvC01b3uZ+bgWoS0uXIyWpswbytCc8=; b=AbtZo+QyMAEIGSAbiAXRmmB/XJZ9ZtsB1eazEz1xI+IbnLAONADObccbx0spspiJ4u KGmtsUgSxUx1zo7ehqzUBrK9S1f6JCqg4jvyadYVb9N0Kn++OG1s7ZMYgzG0CJyhdYBn wm8pg4B0JNwdYwdopC3X0/HJAkj7yVeP3vFO/ZYxG70Aov6IQjME2QsAnnfBc+rraDrk yJVOJS6rg2VO2ajPAOL9DZr/rsJMztmRmkfOCB9+laLb9Q6869DMNpHTuTudwEn9lVTn /Q3eg0jp9IKm4J8a6BXAN5I65JQ7oV2a/KNAebAq9eySGh9Z2WS0i4sc5T8Rf57waTbP RAKA== X-Gm-Message-State: AOAM53354KqfjbmHtSQY80El8NhmvF6aOjCwr1AFjonU5BQM4e9YJSfW hn9VO5HlWh9pf7NueBkWEbF4LJjrwGY0+w== X-Google-Smtp-Source: ABdhPJxE0l+WUpsqMVh4td6k3aFc2plf8gmbFP9zqckQOQFxH8yeiNNL3R7vi/H4RT12B0bVmKdBxw== X-Received: by 2002:a17:906:7315:b0:711:db45:af4c with SMTP id di21-20020a170906731500b00711db45af4cmr10276742ejc.412.1654694970331; Wed, 08 Jun 2022 06:29:30 -0700 (PDT) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id e20-20020a056402149400b0042bd75c53casm12378179edv.83.2022.06.08.06.29.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 06:29:29 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id n28so27097284edb.9 for ; Wed, 08 Jun 2022 06:29:29 -0700 (PDT) X-Received: by 2002:aa7:c508:0:b0:42d:cc6b:df80 with SMTP id o8-20020aa7c508000000b0042dcc6bdf80mr38992813edq.393.1654694969145; Wed, 08 Jun 2022 06:29:29 -0700 (PDT) MIME-Version: 1.0 References: <20220526185258.2680674-1-luca.boccassi@gmail.com> In-Reply-To: <20220526185258.2680674-1-luca.boccassi@gmail.com> From: Luca Boccassi Date: Wed, 8 Jun 2022 14:29:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] gold: add --package-metadata To: binutils@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2022 13:29:33 -0000 On Thu, 26 May 2022 at 19:53, wrote: > > From: Luca Boccassi > > Following the same format as the implementation in ld: > 9e2bb0cb5e74aed4158f08495534922d7108f928 > > Generate a .note.package FDO package metadata ELF note, following > the spec: https://systemd.io/ELF_PACKAGE_METADATA/ > > If the jansson library is available at build time (and it is explicitly > enabled), link ld to it, and use it to validate that the input is > correct JSON, to avoid writing garbage to the file. The > configure option --enable-jansson has to be used to explicitly enable > it (error out when not found). This allows bootstrappers (or others who > are not interested) to seamlessly skip it without issues. Hello Nick, Did you have any chance to look at this? Thanks! Kind regards, Luca Boccassi