Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86ed40bd authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller
Browse files

sparc: unify sections.h



While doing this use standard names for start/end
so we could use definitions straight from asm-generic
for all the typical symbols.

This also allowed us to drop the use of PROVIDE in the linker
script so sprc is less non-standard on this area.

Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b74e34db
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
#ifndef ___ASM_SPARC_SECTIONS_H
#define ___ASM_SPARC_SECTIONS_H
#if defined(__sparc__) && defined(__arch64__)
#include <asm/sections_64.h>
#else
#include <asm/sections_32.h>
#endif
#ifndef __SPARC_SECTIONS_H
#define __SPARC_SECTIONS_H

/* nothing to see, move along */
#include <asm-generic/sections.h>

/* sparc entry point */
extern char _start[];

#endif
+0 −6
Original line number Diff line number Diff line
#ifndef _SPARC_SECTIONS_H
#define _SPARC_SECTIONS_H

#include <asm-generic/sections.h>

#endif
+0 −9
Original line number Diff line number Diff line
#ifndef _SPARC64_SECTIONS_H
#define _SPARC64_SECTIONS_H

/* nothing to see, move along */
#include <asm-generic/sections.h>

extern char _start[];

#endif
+1 −1
Original line number Diff line number Diff line
@@ -990,7 +990,7 @@ sun4c_continue_boot:

		/* Zero out our BSS section. */
		set	__bss_start , %o0	! First address of BSS
		set	end , %o1		! Last address of BSS
		set	_end , %o1		! Last address of BSS
		add	%o0, 0x1, %o0
1:	
		stb	%g0, [%o0]
+0 −3
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ SECTIONS
		*(.gnu.warning)
	} = 0
	_etext = .;
	PROVIDE (etext = .);

	RO_DATA(PAGE_SIZE)
	.data :	{
@@ -69,7 +68,6 @@ SECTIONS
	}
	/* End of data section */
	_edata = .;
	PROVIDE (edata = .);

	/* init_task */
	. = ALIGN(THREAD_SIZE);
@@ -172,7 +170,6 @@ SECTIONS
		*(COMMON)
	}
	_end = . ;
	PROVIDE (end = .);

	/DISCARD/ : {
		EXIT_TEXT
Loading