This is an archive of the discontinued LLVM Phabricator instance.

[lld] support quoted and unquoted entry symbol
AbandonedPublic

Authored by MaskRay on Jun 24 2022, 9:27 PM.

Details

Reviewers
kmistryic
Summary

Match gnu linker behavior by supporting quoted and unquoted entry symbol

Diff Detail

Event Timeline

kmistryic created this revision.Jun 24 2022, 9:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 9:27 PM
kmistryic requested review of this revision.Jun 24 2022, 9:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 9:27 PM

This needs a test in lld/test/ELF

kmistryic updated this revision to Diff 439960.Jun 25 2022, 2:21 AM

Added test

Just add a "_label" test to linkerscript/entry.s.

Apologies. I know that you sent the patch first. I ended up cleaning up the existing linkerscript/entry.s a bit (c5578fca16d5e2b274a9bd44e59f5160e908e294) and added quoted symbol support.

Next time please mention this fixes/closes https://github.com/llvm/llvm-project/issues/56208

[lld] support quoted and unquoted entry symbol

[ELF] Support quoted entry symbol

Unquoted entry symbols are supported before this patch.

MaskRay commandeered this revision.Jun 26 2022, 4:03 PM
MaskRay abandoned this revision.
MaskRay edited reviewers, added: kmistryic; removed: MaskRay.