mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00: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'). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107658 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ce249911b
commit
36335be3b9
@ -936,7 +936,7 @@ static unsigned
|
||||
getCOFFSectionFlags(SectionKind K) {
|
||||
unsigned Flags = 0;
|
||||
|
||||
if (!K.isMetadata())
|
||||
if (K.isMetadata())
|
||||
Flags |=
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE;
|
||||
else if (K.isText())
|
||||
|
Loading…
Reference in New Issue
Block a user