Skip to content

[llvm-objcopy] broken for x86_64 4.9 and older #480

@nickdesaulniers

Description

@nickdesaulniers

copypasta from @nathanchance in ClangBuiltLinux/continuous-integration#164:

https://travis-ci.com/ClangBuiltLinux/continuous-integration/jobs/199950119
https://travis-ci.com/ClangBuiltLinux/continuous-integration/jobs/199950119
https://travis-ci.com/ClangBuiltLinux/continuous-integration/jobs/199950121

llvm-objcopy-9: error: 'firmware/e100/d101m_ucode.bin.ihex': The file was not recognized as a valid object file

Relevant bits of Makefile:

fw-shipped-$(CONFIG_E100) += e100/d101m_ucode.bin e100/d101s_ucode.bin \
			     e100/d102e_ucode.bin
...
quiet_cmd_ihex  = IHEX    $@
    cmd_ihex  = $(OBJCOPY) -Iihex -Obinary $< $@

This was "resolved" upstream by torvalds@5620a0d, which we obviously can't backport. We could apply a local patch that removes the fw-shipped rule in the Makefile or fix llvm-objcopy (if it is even broken).

cc @rupprecht

Metadata

Metadata

Assignees

Labels

[ARCH] x86_64This bug impacts ARCH=x86_64[BUG] llvmA bug that should be fixed in upstream LLVM[FIXED][LLVM] 9This bug was fixed in LLVM 9.0[TOOL] llvm-objcopyThe issue is relevant to LLVM objcopy

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions