These symbols are expected to point to the end of the data segment.
Implements http://llvm.org/pr25528.
Differential D14833
[ELF] Define symbols "_end" and "end" if referenced. ikudrin on Nov 19 2015, 10:45 AM. Authored by
Details These symbols are expected to point to the end of the data segment. Implements http://llvm.org/pr25528.
Diff Detail Event TimelineComment Actions This one looks fine, thanks. Testcases can be shrunk a little bit, e.g. you don't need to check the flags of BSS, that's covered somewhere else.
Comment Actions It's the only way I know to reach the lines like "Address:" and "Size:" and be sure that they are from the desired section. Comment Actions hmm, for some reason phabricator doesn't put my comment at the correct e.g. +// DEFAULT-NEXT: Type: SHT_NOBITS Comment Actions For reference, please add "Implements http://llvm.org/pr25528" to Comment Actions
Comment Actions I want to mention that gold keeps at least _end even if not referenced. I'm not sure what's the rationale behind that but something you may want to keep in mind. Comment Actions Let's wait until the real case emerges. As far as I know, we don't expose symbols unless we know the case where they are required. For example, we don't add a well-known symbol "_GLOBAL_OFFSET_TABLE_", just use the corresponding value during calculation of relocations instead.
|
Sort.