aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorCupertino Miranda <cupertino.miranda@oracle.com>2024-03-05 11:53:56 +0000
committerCupertino Miranda <cupertino.miranda@oracle.com>2024-03-20 20:27:15 +0000
commit624d025f62fdbc969cca08fdb1ac77246b8535a5 (patch)
tree6d6ea3ef23cc4caf8b32f704ab65309b58267abd /libgcc
parent8e913b5c0c998b2ae9497a6ff6bdf475c136cd97 (diff)
downloadgcc-624d025f62fdbc969cca08fdb1ac77246b8535a5.zip
gcc-624d025f62fdbc969cca08fdb1ac77246b8535a5.tar.gz
gcc-624d025f62fdbc969cca08fdb1ac77246b8535a5.tar.bz2
bpf: Fix access string default for CO-RE type based relocations
Although part of all CO-RE relocation data, type based relocations do not require an access string. Initial implementation defined it as an empty string. On the other hand, libbpf when parsing the CO-RE relocations verifies that those strings would contain "0", otherwise reports an error. This patch makes GCC compliant with libbpf expectations. gcc/Changelog: * config/bpf/btfext-out.cc (cpf_core_reloc_add): Correct for new code. Add assert to validate the string is set. * config/bpf/core-builtins.cc (cr_final): Make string struct field as const. (process_enum_value): Correct for field type change. (process_type): Set access string to "0". gcc/testsuite/ChangeLog: * gcc.target/bpf/core-builtin-type-based.c: Correct. * gcc.target/bpf/core-builtin-type-id.c: Correct.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions