projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d14578
)
Output MachO section names in the form SEGMENT,section.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Fri, 15 Jul 2011 00:29:02 +0000
(
00:29
+0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Fri, 15 Jul 2011 00:29:02 +0000
(
00:29
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135231
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Object/MachOObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Object/MachOObjectFile.cpp
b/lib/Object/MachOObjectFile.cpp
index daf85b16a90512c69a50d94178b6e601815f6a5b..044fd3266049e070b8bdcdd55c8646be0fa66fcb 100644
(file)
--- 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, S
LC->
Name);
+ strcpy(result, S
ect->Segment
Name);
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, S
LC->
Name);
+ strcpy(result, S
ect->Segment
Name);
strcat(result, ",");
strcat(result, Sect->Name);
}