Skip to content

Commit 53c9015

Browse files
committed
Simplify comment
1 parent 6fda799 commit 53c9015

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/clang_sections.S

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@
2020
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
2121
*/
2222

23-
/* Workaround for GNU ld mishandling AT() on output sections when no input
24-
* object contributes a matching section. Clang does not emit empty .data/.bss
25-
* sections in object files (GCC does), so GNU ld fails to assign the correct
26-
* LMA for the .data output section, producing a huge sparse binary.
27-
* Including this object ensures .data and .bss exist as inputs.
28-
*/
23+
/* Force clang to emit .data and .bss sections, even if empty, to prevent the
24+
* linker from mishandling ld scripts and creating sparse binaries by putting
25+
* .data in RAM. */
2926
.section .data
3027
.section .bss

0 commit comments

Comments
 (0)