This is an archive of the discontinued LLVM Phabricator instance.

[LLD][ELF] - Linker script: accept using a file name without a list of sections.
ClosedPublic

Authored by grimar on Dec 5 2018, 7:08 AM.

Details

Summary

This is a part of
https://bugs.llvm.org/show_bug.cgi?id=39885

Linker script specification says:
"You can specify a file name to include sections from a particular file. You would do this
if one or more of your files contain special data that needs to be at a particular location in memory."
(https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/sections.html#INPUT-SECTION)

LLD did not accept this yet. The patch implements it.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Dec 5 2018, 7:08 AM
grimar updated this revision to Diff 176816.Dec 5 2018, 7:12 AM
  • Added a forgotten changes for the existent test.
ruiu accepted this revision.Dec 5 2018, 7:34 AM

LGTM

ELF/ScriptParser.cpp
860 ↗(On Diff #176816)

auto

This revision is now accepted and ready to land.Dec 5 2018, 7:34 AM
This revision was automatically updated to reflect the committed changes.