Skip to content

Comments

elf_reader: support referencing weak variables#1571

Merged
ti-mo merged 1 commit intocilium:mainfrom
ti-mo:tb/weak-variables
Oct 1, 2024
Merged

elf_reader: support referencing weak variables#1571
ti-mo merged 1 commit intocilium:mainfrom
ti-mo:tb/weak-variables

Conversation

@ti-mo
Copy link
Contributor

@ti-mo ti-mo commented Oct 1, 2024

Our existing tests included a weak symbol, but it wasn't referenced in code and it ended up in .bss where other symbols sit at the same index. This confused the loader into thinking the symbol was referenced, though there were no actual symbol references to it in bpf code.

Our existing tests included a weak symbol, but it wasn't referenced
in code and it ended up in .bss where other symbols sit at the same
index. This confused the loader into thinking the symbol was referenced,
though there were no actual symbol references to it in bpf code.

Signed-off-by: Timo Beckers <[email protected]>
@ti-mo ti-mo requested a review from a team as a code owner October 1, 2024 12:14
@ti-mo ti-mo merged commit b8fd6de into cilium:main Oct 1, 2024
@ti-mo ti-mo deleted the tb/weak-variables branch October 1, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant