[PATCH] [ELF] Allow TargetLayout descendants to control assignment sections to segments
Simon Atanasyan
simon at atanasyan.com
Tue Apr 21 10:30:42 PDT 2015
Hi ruiu, shankarke,
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.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D9160
Files:
lib/ReaderWriter/ELF/Mips/MipsTargetLayout.h
lib/ReaderWriter/ELF/TargetLayout.cpp
lib/ReaderWriter/ELF/TargetLayout.h
test/elf/Mips/mips-options-02.test
test/elf/Mips/mips-options-03.test
test/elf/Mips/mips-options-04.test
test/elf/Mips/mips-options-05.test
test/elf/Mips/mips-options-gp0.test
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9160.24142.patch
Type: text/x-patch
Size: 7520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150421/f7bc621a/attachment.bin>
More information about the llvm-commits
mailing list