Skip to content

Conversation

@janvorli
Copy link
Member

This change enables using llvm-objcopy instead of the gnu objcopy for
building runtime. The benefit for cross build is that the host machine
no longer needs to have cross-architecture gnu objcopy installed.

There was an attempt to enable llvm-objcopy in the past, but it was
reverted due to a problem with objcopy in llvm 9 that incorrectly
didn't strip debug symbols when --strip-unneeded option was specified.
I have fixed that by adding --strip-debug in addition to the--strip-unneeded.

This change enables using llvm-objcopy instead of the gnu objcopy for
building runtime. The benefit for cross build is that the host machine
no longer needs to have cross-architecture gnu objcopy installed.

There was an attempt to enable llvm objcopy in the past, but it was
reverted due to a problem with objcopy in llvm 9 that incorrectly
didn't strip debug symbols when `--strip-unneeded` option was specified.
I have fixed that by adding `--strip-debug` in addition to the`--strip-unneeded`.
@janvorli janvorli requested review from am11 and jkotas June 29, 2022 17:13
@janvorli janvorli self-assigned this Jun 29, 2022
@ghost
Copy link

ghost commented Jun 29, 2022

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Copy link
Member

@am11 am11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Now the unstrip->strip roundtrip will work with singlefilehost as well.

@janvorli janvorli merged commit c389356 into dotnet:main Jun 30, 2022
@janvorli janvorli deleted the use-llvm-objcopy branch June 30, 2022 00:42
@am11 am11 mentioned this pull request Jul 6, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jul 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants