From 52e5c3567117527886f793a73cc3694b9833b444 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 2 Oct 2019 13:13:18 +0200 Subject: X86: lds: remove unnecessary alignments We do not seem to need all these alignments in the rodata sections, so remove them. Signed-off-by: Sascha Hauer --- arch/sandbox/board/barebox.lds.S | 8 -------- arch/x86/mach-efi/elf_ia32_efi.lds.S | 6 ------ arch/x86/mach-efi/elf_x86_64_efi.lds.S | 6 ------ 3 files changed, 20 deletions(-) diff --git a/arch/sandbox/board/barebox.lds.S b/arch/sandbox/board/barebox.lds.S index bdce8ecbd6..862376dd0e 100644 --- a/arch/sandbox/board/barebox.lds.S +++ b/arch/sandbox/board/barebox.lds.S @@ -4,17 +4,9 @@ SECTIONS { . = ALIGN(64); .barebox_initcalls : { BAREBOX_INITCALLS } - - . = ALIGN(64); .barebox_exitcalls : { BAREBOX_EXITCALLS } - - . = ALIGN(64); .barebox_magicvar : { BAREBOX_MAGICVARS } - - . = ALIGN(64); __barebox_cmd : { BAREBOX_CMDS } - - . = ALIGN(64); __barebox_ratp_cmd : { BAREBOX_RATP_CMDS } } diff --git a/arch/x86/mach-efi/elf_ia32_efi.lds.S b/arch/x86/mach-efi/elf_ia32_efi.lds.S index a5874c448b..70d34f4871 100644 --- a/arch/x86/mach-efi/elf_ia32_efi.lds.S +++ b/arch/x86/mach-efi/elf_ia32_efi.lds.S @@ -54,14 +54,8 @@ SECTIONS .barebox_initcalls : { BAREBOX_INITCALLS } .barebox_exitcalls : { BAREBOX_EXITCALLS } - - . = ALIGN(64); .barebox_magicvar : { BAREBOX_MAGICVARS } - - . = ALIGN(64); __barebox_cmd : { BAREBOX_CMDS } - - . = ALIGN(64); __barebox_ratp_cmd : { BAREBOX_RATP_CMDS } . = ALIGN(4096); diff --git a/arch/x86/mach-efi/elf_x86_64_efi.lds.S b/arch/x86/mach-efi/elf_x86_64_efi.lds.S index b00cb98c97..53de22d75c 100644 --- a/arch/x86/mach-efi/elf_x86_64_efi.lds.S +++ b/arch/x86/mach-efi/elf_x86_64_efi.lds.S @@ -56,14 +56,8 @@ SECTIONS .barebox_initcalls : { BAREBOX_INITCALLS } .barebox_exitcalls : { BAREBOX_EXITCALLS } - - . = ALIGN(64); .barebox_magicvar : { BAREBOX_MAGICVARS } - - . = ALIGN(64); __barebox_cmd : { BAREBOX_CMDS } - - . = ALIGN(64); __barebox_ratp_cmd : { BAREBOX_RATP_CMDS } . = ALIGN(4096); -- cgit v1.2.3