From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6768E38518A4; Wed, 23 Nov 2022 18:46:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6768E38518A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669229198; bh=nudgG7eLEPIs2OMq4PNfqzSS3xaitpzhB5Aoa9e32OI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LPLmcgJsLhH/qmRV4VWoBN/W095gcR4k3FyDpSFFWwdPlh6XvFcSt1A8HzBEoizKD hMYZkoRwbf+az5CorjnJwHWeu04R3i+JYpC8GCNXnEb+qah0a4zMbeBAHz3/0t5qLn l+hBm8OYfLpXdqWj8QrslkUB+vfK5AN6OxBenwiA= From: "james.hilliard1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107848] libbpf: ELF relo #0 in section #7 has unexpected type 12 Date: Wed, 23 Nov 2022 18:46:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: james.hilliard1 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107848 --- Comment #1 from James Hilliard --- Working LLVM BTF Dump: $ /home/buildroot/bpf-next/tools/testing/selftests/bpf/tools/sbin/bpftool --debug btf dump file /home/buildroot/bpf-next/tools/testing/selftests/bpf/bpf_dctcp_release.bpf.o format raw [1] PTR '(anon)' type_id=3D2 [2] INT 'unsigned long long' size=3D8 bits_offset=3D0 nr_bits=3D64 encoding= =3D(none) [3] FUNC_PROTO '(anon)' ret_type_id=3D0 vlen=3D1 'ctx' type_id=3D1 [4] FUNC 'dctcp_nouse_release' type_id=3D3 linkage=3Dglobal [5] INT 'char' size=3D1 bits_offset=3D0 nr_bits=3D8 encoding=3DSIGNED [6] ARRAY '(anon)' type_id=3D5 index_type_id=3D7 nr_elems=3D4 [7] INT '__ARRAY_SIZE_TYPE__' size=3D4 bits_offset=3D0 nr_bits=3D32 encodin= g=3D(none) [8] VAR '_license' type_id=3D6, linkage=3Dglobal [9] CONST '(anon)' type_id=3D5 [10] ARRAY '(anon)' type_id=3D9 index_type_id=3D7 nr_elems=3D6 [11] VAR 'cubic' type_id=3D10, linkage=3Dglobal [12] STRUCT 'tcp_congestion_ops' size=3D128 vlen=3D15 'name' type_id=3D13 bits_offset=3D0 'flags' type_id=3D14 bits_offset=3D128 'init' type_id=3D16 bits_offset=3D192 'release' type_id=3D16 bits_offset=3D256 'ssthresh' type_id=3D25 bits_offset=3D320 'cong_avoid' type_id=3D27 bits_offset=3D384 'set_state' type_id=3D29 bits_offset=3D448 'cwnd_event' type_id=3D32 bits_offset=3D512 'in_ack_event' type_id=3D35 bits_offset=3D576 'undo_cwnd' type_id=3D25 bits_offset=3D640 'pkts_acked' type_id=3D37 bits_offset=3D704 'min_tso_segs' type_id=3D25 bits_offset=3D768 'sndbuf_expand' type_id=3D25 bits_offset=3D832 'cong_control' type_id=3D44 bits_offset=3D896 'owner' type_id=3D52 bits_offset=3D960 [13] ARRAY '(anon)' type_id=3D5 index_type_id=3D7 nr_elems=3D16 [14] TYPEDEF '__u32' type_id=3D15 [15] INT 'unsigned int' size=3D4 bits_offset=3D0 nr_bits=3D32 encoding=3D(n= one) [16] PTR '(anon)' type_id=3D17 [17] FUNC_PROTO '(anon)' ret_type_id=3D0 vlen=3D1 '(anon)' type_id=3D18 [18] PTR '(anon)' type_id=3D19 [19] STRUCT 'sock' size=3D24 vlen=3D3 '__sk_common' type_id=3D20 bits_offset=3D0 'sk_pacing_rate' type_id=3D24 bits_offset=3D64 'sk_pacing_status' type_id=3D14 bits_offset=3D128 [20] STRUCT 'sock_common' size=3D4 vlen=3D2 'skc_state' type_id=3D21 bits_offset=3D0 'skc_num' type_id=3D22 bits_offset=3D16 [21] INT 'unsigned char' size=3D1 bits_offset=3D0 nr_bits=3D8 encoding=3D(n= one) [22] TYPEDEF '__u16' type_id=3D23 [23] INT 'unsigned short' size=3D2 bits_offset=3D0 nr_bits=3D16 encoding=3D= (none) [24] INT 'unsigned long' size=3D8 bits_offset=3D0 nr_bits=3D64 encoding=3D(= none) [25] PTR '(anon)' type_id=3D26 [26] FUNC_PROTO '(anon)' ret_type_id=3D14 vlen=3D1 '(anon)' type_id=3D18 [27] PTR '(anon)' type_id=3D28 [28] FUNC_PROTO '(anon)' ret_type_id=3D0 vlen=3D3 '(anon)' type_id=3D18 '(anon)' type_id=3D14 '(anon)' type_id=3D14 [29] PTR '(anon)' type_id=3D30 [30] FUNC_PROTO '(anon)' ret_type_id=3D0 vlen=3D2 '(anon)' type_id=3D18 '(anon)' type_id=3D31 [31] TYPEDEF '__u8' type_id=3D21 [32] PTR '(anon)' type_id=3D33 [33] FUNC_PROTO '(anon)' ret_type_id=3D0 vlen=3D2 '(anon)' type_id=3D18 '(anon)' type_id=3D34 [34] ENUM 'tcp_ca_event' encoding=3DUNSIGNED size=3D4 vlen=3D6 'CA_EVENT_TX_START' val=3D0 'CA_EVENT_CWND_RESTART' val=3D1 'CA_EVENT_COMPLETE_CWR' val=3D2 'CA_EVENT_LOSS' val=3D3 'CA_EVENT_ECN_NO_CE' val=3D4 'CA_EVENT_ECN_IS_CE' val=3D5 [35] PTR '(anon)' type_id=3D36 [36] FUNC_PROTO '(anon)' ret_type_id=3D0 vlen=3D2 '(anon)' type_id=3D18 '(anon)' type_id=3D14 [37] PTR '(anon)' type_id=3D38 [38] FUNC_PROTO '(anon)' ret_type_id=3D0 vlen=3D2 '(anon)' type_id=3D18 '(anon)' type_id=3D39 [39] PTR '(anon)' type_id=3D40 [40] CONST '(anon)' type_id=3D41 [41] STRUCT 'ack_sample' size=3D12 vlen=3D3 'pkts_acked' type_id=3D14 bits_offset=3D0 'rtt_us' type_id=3D42 bits_offset=3D32 'in_flight' type_id=3D14 bits_offset=3D64 [42] TYPEDEF '__s32' type_id=3D43 [43] INT 'int' size=3D4 bits_offset=3D0 nr_bits=3D32 encoding=3DSIGNED [44] PTR '(anon)' type_id=3D45 [45] FUNC_PROTO '(anon)' ret_type_id=3D0 vlen=3D2 '(anon)' type_id=3D18 '(anon)' type_id=3D46 [46] PTR '(anon)' type_id=3D47 [47] CONST '(anon)' type_id=3D48 [48] STRUCT 'rate_sample' size=3D56 vlen=3D13 'prior_mstamp' type_id=3D49 bits_offset=3D0 'prior_delivered' type_id=3D14 bits_offset=3D64 'delivered' type_id=3D42 bits_offset=3D96 'interval_us' type_id=3D50 bits_offset=3D128 'snd_interval_us' type_id=3D14 bits_offset=3D192 'rcv_interval_us' type_id=3D14 bits_offset=3D224 'rtt_us' type_id=3D50 bits_offset=3D256 'losses' type_id=3D43 bits_offset=3D320 'acked_sacked' type_id=3D14 bits_offset=3D352 'prior_in_flight' type_id=3D14 bits_offset=3D384 'is_app_limited' type_id=3D51 bits_offset=3D416 'is_retrans' type_id=3D51 bits_offset=3D424 'is_ack_delayed' type_id=3D51 bits_offset=3D432 [49] TYPEDEF '__u64' type_id=3D2 [50] INT 'long' size=3D8 bits_offset=3D0 nr_bits=3D64 encoding=3DSIGNED [51] INT '_Bool' size=3D1 bits_offset=3D0 nr_bits=3D8 encoding=3DBOOL [52] PTR '(anon)' type_id=3D0 [53] VAR 'dctcp_rel' type_id=3D12, linkage=3Dglobal [54] DATASEC '.rodata' size=3D0 vlen=3D1 type_id=3D11 offset=3D0 size=3D6 (VAR 'cubic') [55] DATASEC '.struct_ops' size=3D0 vlen=3D1 type_id=3D53 offset=3D0 size=3D128 (VAR 'dctcp_rel') [56] DATASEC 'license' size=3D0 vlen=3D1 type_id=3D8 offset=3D0 size=3D4 (VAR '_license')=