1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/include/llvm/Object
Jordan Rupprecht b88c3ef139 [llvm-size][libobject] Add explicit "inTextSegment" methods similar to "isText" section methods to calculate size correctly.
Summary:
llvm-size uses "isText()" etc. which seem to indicate whether the section contains code-like things, not whether or not it will actually go in the text segment when in a fully linked executable.

The unit test added (elf-sizes.test) shows some types of sections that cause discrepencies versus the GNU size tool. llvm-size is not correctly reporting sizes of things mapping to text/data segments, at least for ELF files.

This fixes pr38723.

Reviewers: echristo, Bigcheese, MaskRay

Reviewed By: MaskRay

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D54369

llvm-svn: 349074
2018-12-13 19:40:12 +00:00
..
Archive.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
ArchiveWriter.h Convert the archive writer to use Error. 2017-09-21 23:13:36 +00:00
Binary.h Remove @brief commands from doxygen comments, too. 2018-05-01 16:10:38 +00:00
COFF.h [COFF] Map truncated .eh_frame section name 2018-12-08 18:15:41 +00:00
COFFImportFile.h [COFF] Improve correctness of def parsing for GNU features 2018-05-09 09:21:53 +00:00
COFFModuleDefinition.h Object: preserve more information about DEF file 2017-07-19 02:01:22 +00:00
CVDebugRecord.h Move CVDebugRecord from CodeView to Object to fix layering 2018-03-26 23:37:02 +00:00
Decompressor.h Remove @brief commands from doxygen comments, too. 2018-05-01 16:10:38 +00:00
ELF.h [llvm-objdump] Add dynamic section printing to private-headers option 2018-07-25 11:09:20 +00:00
ELFObjectFile.h [llvm-size][libobject] Add explicit "inTextSegment" methods similar to "isText" section methods to calculate size correctly. 2018-12-13 19:40:12 +00:00
ELFTypes.h Follow-up fix to r348811 for null Errors (which is the case for end iterators) 2018-12-11 00:17:36 +00:00
Error.h Revert "[ADT] Make Twine's copy constructor private." 2017-10-11 23:54:34 +00:00
IRObjectFile.h [Object] Allow iterating over an IRObjectFile's modules 2018-06-27 17:58:32 +00:00
IRSymtab.h [LTO] Prevent dead stripping and internalization of symbols with sections 2017-07-25 19:42:32 +00:00
MachO.h Remove trailing space 2018-07-30 19:41:25 +00:00
MachOUniversal.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
ModuleSymbolTable.h LowerTypeTests: Propagate symver directives 2018-04-20 01:36:48 +00:00
ObjectFile.h [llvm-size][libobject] Add explicit "inTextSegment" methods similar to "isText" section methods to calculate size correctly. 2018-12-13 19:40:12 +00:00
RelocVisitor.h [WebAssembly] Add support for the event section 2018-11-14 02:46:21 +00:00
StackMapParser.h Prune whitespaces in blank lines. 2017-08-28 07:48:37 +00:00
SymbolicFile.h Remove inline keyword from inline classof methods 2017-06-29 19:35:17 +00:00
SymbolSize.h Fix llvm-symbolizer to correctly sort a symbol array and calculate symbol sizes 2016-11-15 21:07:03 +00:00
Wasm.h [WebAssembly] Update dylink section parsing 2018-12-12 23:40:58 +00:00
WasmTraits.h [WebAssembly] Refactor WasmSignature and use it for MCSymbolWasm 2018-10-03 22:22:48 +00:00
WindowsResource.h Fix warnings discovered by rL317076. [-Wunused-private-field] 2017-11-01 13:47:55 +00:00