BPF Archive on lore.kernel.org
 help / color / Atom feed
* headsup: latest llvm breaks libbpf/selftests
@ 2020-01-15  5:58 Yonghong Song
  0 siblings, 0 replies; only message in thread
From: Yonghong Song @ 2020-01-15  5:58 UTC (permalink / raw)
  To: bpf; +Cc: Andrii Nakryiko, Daniel Borkmann, Alexei Starovoitov

Hi,

The LLVM patch https://reviews.llvm.org/D72197, which is merged to llvm 
trunk on Sunday (01/12), emitted function call relocations within the
same section. This breaks libbpf and selftests as libbpf assumes no same
section relocations.

To work around the issue, after you pull in latest llvm, just checkout
the commit before the following one:
    commit 2bfee35cb860859b436de0b780fbd00d68e198a4
    Author: Fangrui Song <maskray@google.com>
    Date:   Fri Jan 3 21:44:57 2020 -0800

    [MC][ELF] Emit a relocation if target is defined in the same section
    and is non-local

...
ada22c804cd956f3ee7cc9dc82e6d54ead8a4ffe Fix "pointer is null" static 
analyzer warning. NFCI.
2bfee35cb860859b436de0b780fbd00d68e198a4 [MC][ELF] Emit a relocation if 
target is defined in the same section and is non-local
241f330d6bab52ab4e3a01cbb9a3edd417d07c59 [AMDGPU] Add gfx8 assembler and 
disassembler test cases
    ^^^^^^
    checkout this commit
7fa5290d5bd5632d7a36a4ea9f46e81e04fb819e __patchable_function_entries: 
don't use linkage field 'unique' with -no-integrated-as
...

libbpf and selftests should work again.

The issue will be addressed soon.

Thanks,

Yonghong

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15  5:58 headsup: latest llvm breaks libbpf/selftests Yonghong Song

BPF Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/bpf/0 bpf/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 bpf bpf/ https://lore.kernel.org/bpf \
		bpf@vger.kernel.org
	public-inbox-index bpf

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.bpf


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git