Skip to content

Commit

Permalink
x86/build: Drop superfluous ALIGN from the linker script
Browse files Browse the repository at this point in the history
ALIGN(8) is superfluous since macro TEXT_TEXT already has one.

bonus cleanups:

  - indentation fix
  - spaces -> tab.

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180208063857.15197-1-caoj.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Cao jin authored and Ingo Molnar committed Feb 13, 2018
1 parent 178e834 commit a06cc94
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions arch/x86/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ SECTIONS
_stext = .;
/* bootstrapping code */
HEAD_TEXT
. = ALIGN(8);
TEXT_TEXT
SCHED_TEXT
CPUIDLE_TEXT
Expand Down Expand Up @@ -198,7 +197,7 @@ SECTIONS
. = __vvar_beginning_hack + PAGE_SIZE;
} :data

. = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE);
. = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE);

/* Init code and data - will be freed after init */
. = ALIGN(PAGE_SIZE);
Expand Down Expand Up @@ -366,8 +365,8 @@ SECTIONS
. = ALIGN(PAGE_SIZE); /* keep VO_INIT_SIZE page aligned */
_end = .;

STABS_DEBUG
DWARF_DEBUG
STABS_DEBUG
DWARF_DEBUG

/* Sections to be discarded */
DISCARDS
Expand Down

0 comments on commit a06cc94

Please sign in to comment.