Skip to contentSkip to conversation

xen/{RISCV,PPC}/xen.lds: Delete duplicate _erodata definitions

PATCH In review Andrew Cooper 4 participants 5 messages Mar 5, 2024 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/{RISCV,PPC}/xen.lds: Delete duplicate _erodata definitions

This is bad copy/paste from somewhere. Retain the second _erodata symbol, which follows the Build ID, and matches the other architectures.

No functional change.

---
CC: Oleksii Kurochko <[email protected]>
CC: Shawn Anastasio <[email protected]>

---
 xen/arch/ppc/xen.lds.S   | 1 -
 xen/arch/riscv/xen.lds.S | 1 -
 2 files changed, 2 deletions(-)
xen/arch/ppc/xen.lds.S +0 -1
index 030e1ee37b55..05b6db272805 100644
@@ -60,7 +60,6 @@ SECTIONS
         VPCI_ARRAY
 
         . = ALIGN(POINTER_ALIGN);
-        _erodata = .;        /* End of read-only data */
     } :text
 
     #if defined(BUILD_ID)
xen/arch/riscv/xen.lds.S +0 -1
index 8510a87c4d06..ace6f49c579c 100644
@@ -60,7 +60,6 @@ SECTIONS
         VPCI_ARRAY
 
         . = ALIGN(POINTER_ALIGN);
-        _erodata = .;        /* End of read-only data */
     } :text
 
     #if defined(BUILD_ID)

base-commit: fc84b4a5a37b9250d87ef63983b48e1953bba6d1
prerequisite-patch-id: b14999775a3dc222f2f94d7d5d7a1db377de9cb9
prerequisite-patch-id: 00650d75df673992b4c8cb6d7ac61dab72b9b309
prerequisite-patch-id: 5464f5f1e7448cde38749a3744c9e74708727dee

Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Andrew Cooper

This is bad copy/paste from somewhere. Retain the second _erodata symbol, which follows the Build ID, and matches the other architectures.

No functional change.

I.e. the 2nd one took effect? (To be honest I'm surprised the linker didn't complain about a duplicate symbol there.)

Quoted 1 line
#2 lore raw
Quoted 6 lines · Jan Beulich
Quoted 4 lines · Andrew Cooper

This is bad copy/paste from somewhere. Retain the second _erodata symbol, which follows the Build ID, and matches the other architectures.

No functional change.

I.e. the 2nd one took effect?

Seems to have done, yes.

Quoted 5 lines

(To be honest I'm surprised the linker
didn't complain about a duplicate symbol there.)

Quoted 1 line

Thanks.

Reviewed-by on v1 1/1
#3 lore raw
In reply to Andrew Cooper

RISC-V changes look good to me.

~ Oleksii

Quoted 44 lines · Andrew Cooper

This is bad copy/paste from somewhere.  Retain the second _erodata symbol,
which follows the Build ID, and matches the other architectures.

No functional change.

---
CC: Oleksii Kurochko <[email protected]>
CC: Shawn Anastasio <[email protected]>
---
 xen/arch/ppc/xen.lds.S   | 1 - xen/arch/riscv/xen.lds.S | 1 -

 2 files changed, 2 deletions(-)
xen/arch/ppc/xen.lds.S +0 -0
index 030e1ee37b55..05b6db272805 100644
@@ -60,7 +60,6 @@ SECTIONS

         VPCI_ARRAY

         . = ALIGN(POINTER_ALIGN);
-        _erodata = .;        /* End of read-only data */ } :text

     #if defined(BUILD_ID)

xen/arch/riscv/xen.lds.S +0 -0
index 8510a87c4d06..ace6f49c579c 100644
@@ -60,7 +60,6 @@ SECTIONS

         VPCI_ARRAY

         . = ALIGN(POINTER_ALIGN);
-        _erodata = .;        /* End of read-only data */ } :text

     #if defined(BUILD_ID)

base-commit: fc84b4a5a37b9250d87ef63983b48e1953bba6d1
prerequisite-patch-id: b14999775a3dc222f2f94d7d5d7a1db377de9cb9
prerequisite-patch-id: 00650d75df673992b4c8cb6d7ac61dab72b9b309
prerequisite-patch-id: 5464f5f1e7448cde38749a3744c9e74708727dee