[PATCH] D11266: LLD: ELF: Correctly identify SHT_NOTE sections with !SHF_ALLOC as type*Note
Rui Ueyama
ruiu at google.com
Wed Aug 5 18:33:07 PDT 2015
ruiu added inline comments.
================
Comment at: lib/ReaderWriter/ELF/Atoms.cpp:77
@@ -75,1 +76,3 @@
+ if (_section->sh_type == SHT_NOTE)
+ return (flags == SHF_WRITE) ? typeRWNote : typeRONote;
return _contentType = typeNoAlloc;
----------------
Don't you have to assign it to _contentType?
http://reviews.llvm.org/D11266
More information about the llvm-commits
mailing list