Eugene Leviant
57225ac179
[ELF] Don't add NOLOAD sections to segment
...
Differential revision: https://reviews.llvm.org/D45264
llvm-svn: 329281
2018-04-05 13:23:59 +00:00
Rui Ueyama
2569edd9b8
Fix a test that didn't actually test anything.
...
llvm-svn: 320117
2017-12-08 00:00:37 +00:00
Rui Ueyama
3271d3704a
Fix a bug in output section directive.
...
Previously, it couldn't parse
SECTIONS .text (0x1000) : { *(.text) }
because "(" was interpreted as the begining of the "(NOLOAD)" directive.
llvm-svn: 305006
2017-06-08 19:47:16 +00:00
George Rimar
fbb0463f39
[ELF] - Linkerscript: implement NOLOAD section type.
...
This is PR32351
Each output section may have a type. The type is a keyword in parentheses.
(https://sourceware.org/binutils/docs/ld/Output-Section-Type.html#Output-Section-Type )
This patch support only one type, it is NOLOAD.
If output section has such type, we force it to be SHT_NOBITS.
More details are available on a review page.
Differential revision: https://reviews.llvm.org/D33647
llvm-svn: 304925
2017-06-07 16:31:08 +00:00