Unverified Commit 49cfbdc2 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Palmer Dabbelt
Browse files

riscv: vdso.lds.S: merge .data section into .rodata section



The .data section doesn't need to be separate from .rodata section,
they are both readonly.

Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Tested-by: default avatarEmil Renner Berthing <emil.renner.berthing@canonical.com>
Link: https://lore.kernel.org/r/20230912072015.2424-3-jszhang@kernel.org


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent ddcc7d9b
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -29,7 +29,13 @@ SECTIONS
	.eh_frame_hdr	: { *(.eh_frame_hdr) }		:text	:eh_frame_hdr
	.eh_frame	: { KEEP (*(.eh_frame)) }	:text

	.rodata		: { *(.rodata .rodata.* .gnu.linkonce.r.*) }
	.rodata		: {
		*(.rodata .rodata.* .gnu.linkonce.r.*)
		*(.got.plt) *(.got)
		*(.data .data.* .gnu.linkonce.d.*)
		*(.dynbss)
		*(.bss .bss.* .gnu.linkonce.b.*)
	}

	/*
	 * This linker script is used both with -r and with -shared.
@@ -44,13 +50,6 @@ SECTIONS
	.alternative : {
		*(.alternative)
	}

	.data		: {
		*(.got.plt) *(.got)
		*(.data .data.* .gnu.linkonce.d.*)
		*(.dynbss)
		*(.bss .bss.* .gnu.linkonce.b.*)
	}
}

/*