Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2021 00:26:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 252629] Need infrastructure to set ELF feature note flags via elfctl
Message-ID:  <bug-252629-7788-1oFmzLWXE5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-252629-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-252629-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252629

--- Comment #16 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Df2b5999b2166579a2ebd4b5e117a17574=
f18d50f

commit f2b5999b2166579a2ebd4b5e117a17574f18d50f
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2021-01-22 17:22:35 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2021-01-26 14:44:12 +0000

    elfctl: allow features to be specified by value

    This will allow elfctl on older releases to set bits that are not yet
    known there, so that the binary will have the correct settings applied
    if run on a later FreeBSD version.

    PR:             252629 (related)
    Suggested by:   kib
    Reviewed by:    gbe (manpage, earlier), kib
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D28284

    (cherry picked from commit 86f33b5fcf6087bf4439881011b920ff99e6e300)

    elfctl: fix typo from last-minute refactoring

    Reported by:    jkim

    (cherry picked from commit f302fd1aa6730facd53a3f761e0a57302731b03e)

    elfctl: Fix type errors.

    Target value for val has uint32_t type, not uint, adjust used constant.
    Change val type to unsigned so that left and right sides of comparision
    operator do not expose different signed types of same range [*].

    Switch to unsigned long long and strtoll(3) so that 0x80000000 is
    accepted by conversion function [**].

    Reported by:    kargl [*]
    Noted by:       emaste [**]
    Reviewed by:    emaste
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D28301

    (cherry picked from commit 9940ac808de7b7d4ed0408c3e739f667dca06d3b)

 usr.bin/elfctl/elfctl.1 | 15 +++++++++++++--
 usr.bin/elfctl/elfctl.c | 26 +++++++++++++++++++++++---
 2 files changed, 36 insertions(+), 5 deletions(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252629-7788-1oFmzLWXE5>