mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
[llvm-objcopy] [COFF] Clear the unwritten tail of coff_section::Header::Name
This should fix the add-gnu-debuglink test on all buildbots. llvm-svn: 351934
This commit is contained in:
parent
3eb6a1b6b8
commit
f0946e1b01
@ -121,6 +121,7 @@ size_t COFFWriter::finalizeStringTable() {
|
||||
|
||||
for (auto &S : Obj.getMutableSections()) {
|
||||
if (S.Name.size() > COFF::NameSize) {
|
||||
memset(S.Header.Name, 0, sizeof(S.Header.Name));
|
||||
snprintf(S.Header.Name, sizeof(S.Header.Name), "/%d",
|
||||
(int)StrTabBuilder.getOffset(S.Name));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user