Skip to content

Commit

Permalink
x86-32: move _end to a dummy section
Browse files Browse the repository at this point in the history
Impact: build fix with CONFIG_RELOCATABLE

Move _end into a dummy section, so that relocs.c will know it is a
relocatable symbol.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
  • Loading branch information
H. Peter Anvin committed Mar 17, 2009
1 parent 704439d commit 0a699af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/x86/kernel/vmlinux_32.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ SECTIONS
__brk_limit = . ;
}

_end = . ;
.end : AT(ADDR(.end) - LOAD_OFFSET) {
_end = . ;
}

/* Sections to be discarded */
/DISCARD/ : {
Expand Down

0 comments on commit 0a699af

Please sign in to comment.