Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker: Allow merging H extension #95

Merged
merged 1 commit into from
Nov 28, 2022
Merged

Linker: Allow merging H extension #95

merged 1 commit into from
Nov 28, 2022

Conversation

a4lg
Copy link
Owner

@a4lg a4lg commented Nov 26, 2022

@a4lg a4lg force-pushed the riscv-ld-merge-h-ext branch from 0db7752 to c55d943 Compare November 26, 2022 03:11
@a4lg a4lg added the bug Something isn't working label Nov 26, 2022
@a4lg a4lg force-pushed the riscv-ld-merge-h-ext branch 3 times, most recently from e9f4b0d to 1a6342e Compare November 28, 2022 01:04
Because riscv_merge_std_ext function did not merge the 'H' extension, linked
executables lacked 'H' extension when multiple objects are merged.

This issue is found while building OpenSBI with 'H' extension (resulting
ELF files did not contain "h1p0" in "Tag_RISCV_arch" even if *all* linked
object files contained it).

This commit adds 'h' to standard_exts variable to merge 'H' extension.

bfd/ChangeLog:

	* elfnn-riscv.c (riscv_merge_std_ext): Add 'H' extension merging.
@a4lg a4lg force-pushed the riscv-ld-merge-h-ext branch from 1a6342e to c341f46 Compare November 28, 2022 02:36
@a4lg a4lg merged commit c341f46 into master Nov 28, 2022
@a4lg a4lg deleted the riscv-ld-merge-h-ext branch November 28, 2022 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant