diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-15 00:29:02 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-15 00:29:02 +0000 |
commit | 291e767dcf19d60b8e774114efc6e10f2e022844 (patch) | |
tree | 0b8ed19393e78a4f3e76a2363ea09f79067a3017 /lib/Object | |
parent | 7d145789c01f9a1863ea02574bc3f9567c8a33fa (diff) |
Output MachO section names in the form SEGMENT,section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/MachOObjectFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp index daf85b16a9..044fd32660 100644 --- a/lib/Object/MachOObjectFile.cpp +++ b/lib/Object/MachOObjectFile.cpp @@ -264,7 +264,7 @@ error_code MachOObjectFile::getSectionName(DataRefImpl DRI, InMemoryStruct<macho::Section64> Sect; MachOObj->ReadSection64(LCI, DRI.d.b, Sect); - strcpy(result, SLC->Name); + strcpy(result, Sect->SegmentName); strcat(result, ","); strcat(result, Sect->Name); } else { @@ -274,7 +274,7 @@ error_code MachOObjectFile::getSectionName(DataRefImpl DRI, InMemoryStruct<macho::Section> Sect; MachOObj->ReadSection(LCI, DRI.d.b, Sect); - strcpy(result, SLC->Name); + strcpy(result, Sect->SegmentName); strcat(result, ","); strcat(result, Sect->Name); } |