Skip to contentSkip to conversation

arm: vmlinux.lds.S: drop redundant .comment

PATCH New Mark Rutland 1 participant 2 messages Jun 24, 2014 – Jun 30, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: vmlinux.lds.S: drop redundant .comment

Commit 78d7530ac3 ("ARM: Clean up linker script using new linker script macros.") modified the arm kernel linker script to use the STABS_DEBUG macro, but left a .comment section definition. As STABS_DEBUG defines the .comment section in an identical way, the second section definition is redundant and can be removed.

This patch removes the redundant .comment section definition.

---
 arch/arm/kernel/vmlinux.lds.S | 1 -
 1 file changed, 1 deletion(-)
arch/arm/kernel/vmlinux.lds.S +0 -1
index 7bcee5c..6f57cb9 100644
@@ -318,7 +318,6 @@ SECTIONS
 	_end = .;
 
 	STABS_DEBUG
-	.comment 0 : { *(.comment) }
 }
 
 /*
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 arm: vmlinux.lds.S: drop redundant .comment

Hi,

Quoted 6 lines · Mark Rutland

Commit 78d7530ac3 ("ARM: Clean up linker script using new linker script macros.") modified the arm kernel linker script to use the STABS_DEBUG macro, but left a .comment section definition. As STABS_DEBUG defines the .comment section in an identical way, the second section definition is redundant and can be removed.

Quoted 6 lines

This patch removes the redundant .comment section definition.

---
 arch/arm/kernel/vmlinux.lds.S | 1 -
 1 file changed, 1 deletion(-)

On the assumption that the below patch is fine I've dropped it into the patch system as 8088/1.

Thanks,
Mark.

Quoted 16 lines
arch/arm/kernel/vmlinux.lds.S +0 -1
index 7bcee5c..6f57cb9 100644
@@ -318,7 +318,6 @@ SECTIONS
 	_end = .;
 
 	STABS_DEBUG
-	.comment 0 : { *(.comment) }
 }
 
 /*
Signature · 1 line
1.9.1