Skip to content

Commit cb49f85

Browse files
committed
remove {} and fix typo in comments
1 parent b2803a3 commit cb49f85

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lld/ELF/InputFiles.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -816,14 +816,14 @@ template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) {
816816
}
817817
}
818818
break;
819-
case EM_AARCH64: {
819+
case EM_AARCH64:
820820
// At this stage AArch64 Build Attributes does not replace GNU Properties.
821821
// When both exists, their values must match.
822822
// When both exists and contain different attributes, they complement each
823-
// other. Curently attributes are represented in the linked object file as
824-
// GNU properties, which are already supported by the Linux kernel and the
825-
// dynamic loader. In the future, when relocatable linking (`-r` flag) is
826-
// performed, a single merged AArch64 Build Attributes section will be
823+
// other. Currently attributes are represented in the linked object file
824+
// as GNU properties, which are already supported by the Linux kernel and
825+
// the dynamic loader. In the future, when relocatable linking (`-r` flag)
826+
// is performed, a single merged AArch64 Build Attributes section will be
827827
// emitted.
828828
if (sec.sh_type == SHT_AARCH64_ATTRIBUTES) {
829829
ArrayRef<uint8_t> contents = check(obj.getSectionContents(sec));
@@ -840,12 +840,12 @@ template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) {
840840
}
841841
// Producing a static binary with MTE globals is not currently supported,
842842
// remove all SHT_AARCH64_MEMTAG_GLOBALS_STATIC sections as they're unused
843-
// medatada, and we don't want them to end up in the output file for
843+
// metadata, and we don't want them to end up in the output file for
844844
// static executables.
845845
if (sec.sh_type == SHT_AARCH64_MEMTAG_GLOBALS_STATIC &&
846846
!canHaveMemtagGlobals(ctx))
847847
sections[i] = &InputSection::discarded;
848-
} break;
848+
break;
849849
}
850850
}
851851

0 commit comments

Comments
 (0)