This is an archive of the discontinued LLVM Phabricator instance.

Define __executable_start
ClosedPublic

Authored by rafael on May 30 2017, 3:52 PM.

Details

Reviewers
ruiu
Summary

It is a bit odd to define two symbols pointing to the same location, but it is a trivial change, so it is probably ok.

This is defined by both gold and bfd.

Diff Detail

Event Timeline

rafael created this revision.May 30 2017, 3:52 PM
ruiu accepted this revision.Jun 5 2017, 2:52 PM

LGTM

ELF/Writer.cpp
916–917

Since this is just two iterations, I'd do

addOptionalRegular<ELFT>("__ehdr_start", Out::ElfHeader, 0, STV_HIDDEN);
addOptionalRegular<ELFT>("__executable_start", Out::ElfHeader, 0, STV_HIDDEN);
This revision is now accepted and ready to land.Jun 5 2017, 2:52 PM
espindola closed this revision.Mar 14 2018, 3:51 PM
espindola added a subscriber: espindola.

304803