Skip to content

Commit b6ee080

Browse files
authored
[BOLT] correct name of .note.gnu.property section
.gnu.property.note -> .note.gnu.property
1 parent 890ea8b commit b6ee080

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bolt/lib/Rewrite/GNUPropertyRewriter.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// Read the .gnu.property.note section.
9+
// Read the .note.gnu.property section.
1010
//
1111
//===----------------------------------------------------------------------===//
1212

@@ -60,7 +60,7 @@ Error GNUPropertyRewriter::sectionInitializer() {
6060
if (!Cursor)
6161
return createStringError(
6262
errc::executable_format_error,
63-
"out of bounds while reading .gnu.property.note section: %s",
63+
"out of bounds while reading .note.gnu.property section: %s",
6464
toString(Cursor.takeError()).c_str());
6565

6666
if (Type == ELF::NT_GNU_PROPERTY_TYPE_0 && Name.starts_with("GNU") &&
@@ -110,7 +110,7 @@ Expected<uint32_t> GNUPropertyRewriter::decodeGNUPropertyNote(StringRef Desc) {
110110
if (!Cursor)
111111
return createStringError(
112112
errc::executable_format_error,
113-
"out of bounds while reading .gnu.property.note section: %s",
113+
"out of bounds while reading .note.gnu.property section: %s",
114114
toString(Cursor.takeError()).c_str());
115115

116116
if (PrType == llvm::ELF::GNU_PROPERTY_AARCH64_FEATURE_1_AND) {
@@ -125,7 +125,7 @@ Expected<uint32_t> GNUPropertyRewriter::decodeGNUPropertyNote(StringRef Desc) {
125125
if (!Tmp)
126126
return createStringError(
127127
errc::executable_format_error,
128-
"failed to read property from .gnu.property.note section: %s",
128+
"failed to read property from .note.gnu.property section: %s",
129129
toString(Tmp.takeError()).c_str());
130130
Features = Features ? (*Features | FeaturesItem) : FeaturesItem;
131131
}
@@ -134,7 +134,7 @@ Expected<uint32_t> GNUPropertyRewriter::decodeGNUPropertyNote(StringRef Desc) {
134134
if (!Cursor)
135135
return createStringError(errc::executable_format_error,
136136
"out of bounds while reading property array in "
137-
".gnu.property.note section: %s",
137+
".note.gnu.property section: %s",
138138
toString(Cursor.takeError()).c_str());
139139
}
140140
return Features.value_or(0u);

0 commit comments

Comments
 (0)