diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2015-04-22 07:57:35 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2015-04-22 07:57:35 +0000 |
commit | 5606dac67e0efe54957cb09e0383047d25c321e5 (patch) | |
tree | 02412eb203e788dbae170e337ec4c32e6134119f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 4b0abddeeadbece3a97713806604db192fbbf53e (diff) | |
download | bcm5719-llvm-5606dac67e0efe54957cb09e0383047d25c321e5.tar.gz bcm5719-llvm-5606dac67e0efe54957cb09e0383047d25c321e5.zip |
[ELF] Allow TargetLayout descendants to control assignment sections to segments
The TargetLayout class puts two sections into the same segment if they
have equal segment types and the same section flags (SHF_xxx). To be
able to merge some sort of sections into the same segment we drop some
flags before comparison. For example to merge string sections into Data
segment we drop SHF_STRINGS and SHF_MERGE flags.
The patch allows TargetLayout descendants to drop some target specific
section flags. MIPS target needs that to merge .MIPS.options section
which has SHF_MIPS_NOSTRIP flag into the LOAD segment.
http://reviews.llvm.org/D9160
llvm-svn: 235487
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions