mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix a major regression on COFF targets introduced by r103267: 'discardable' section means that it is used only during the program load and can be discarded afterwards.
This way *only* debug sections can be discarded, but not the opposite. Seems like the copy-and-pasto from ELF code, since there it contains the reverse flag ('alloc'). llvm-svn: 107658
This commit is contained in:
parent
0cea029f14
commit
3097e49515
@ -936,7 +936,7 @@ static unsigned
|
|||||||
getCOFFSectionFlags(SectionKind K) {
|
getCOFFSectionFlags(SectionKind K) {
|
||||||
unsigned Flags = 0;
|
unsigned Flags = 0;
|
||||||
|
|
||||||
if (!K.isMetadata())
|
if (K.isMetadata())
|
||||||
Flags |=
|
Flags |=
|
||||||
COFF::IMAGE_SCN_MEM_DISCARDABLE;
|
COFF::IMAGE_SCN_MEM_DISCARDABLE;
|
||||||
else if (K.isText())
|
else if (K.isText())
|
||||||
|
Loading…
Reference in New Issue
Block a user