public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug backends/30251] New: eu-elflint is broken on LoongArch
@ 2023-03-20 14:52 asheplyakov at basealt dot ru
  2023-03-20 22:37 ` [Bug backends/30251] " mark at klomp dot org
  0 siblings, 1 reply; 2+ messages in thread
From: asheplyakov at basealt dot ru @ 2023-03-20 14:52 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=30251

            Bug ID: 30251
           Summary: eu-elflint is broken on LoongArch
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: backends
          Assignee: unassigned at sourceware dot org
          Reporter: asheplyakov at basealt dot ru
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Created attachment 14768
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14768&action=edit
patch: basic implementation of machine flag check for LoongArch

eu-elflint is unhappy about any LoongArch (lp64d ABI) ELF binary, in
particular, about itself:

$ ./src/elflint --gnu-ld ./src/elflint
invalid machine flags: 0x43
$ echo $?
1

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug backends/30251] eu-elflint is broken on LoongArch
  2023-03-20 14:52 [Bug backends/30251] New: eu-elflint is broken on LoongArch asheplyakov at basealt dot ru
@ 2023-03-20 22:37 ` mark at klomp dot org
  0 siblings, 0 replies; 2+ messages in thread
From: mark at klomp dot org @ 2023-03-20 22:37 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=30251

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |mark at klomp dot org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Thanks, that looks perfect. Pushed as:

commit b2871fa8d430e2c5fb39e3ebc6745ea32f1bddb4
Author: Alexey Sheplyakov <asheplyakov@basealt.ru>
Date:   Mon Mar 20 18:45:02 2023 +0400

    LoongArch: implemented a basic machine flag check

    With this patch I can use eu-elflint to verify LoongArch ELF
    binaries. Previously eu-elflint was complaining about invalid
    machine flags:

    $ ./src/elflint --gnu-ld ./src/elflint
    invalid machine flags: 0x43
    $ echo $?
    1

        * backends/loongarch_symbol.c (loongarch_init): Hook
        machine_flag_check.
        * backends/loongarch_symbol.c (loongarch_machine_flag_check):
        New function.

    https://sourceware.org/bugzilla/show_bug.cgi?id=30251

    Signed-off-by: Alexey Sheplyakov <asheplyakov@basealt.ru>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-20 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 14:52 [Bug backends/30251] New: eu-elflint is broken on LoongArch asheplyakov at basealt dot ru
2023-03-20 22:37 ` [Bug backends/30251] " mark at klomp dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).