build: consolidate some common parts of linker scripts
There are a number of data sections that are repeated across all the linker scripts for various architecture. In practice these don't always get updated and we have had problems with bit-rot. Consolidate these to make maintenance easier. x86 linker scripts now follow the same naming convention and we get rid of a linker-epilog.h that wasn't necessary and whose purpose has been lost to the mists of time. If applications want to define their own sections they should be allowed to. Linker scripts for x86 do not end with .h any more, they are not C header files even though we use C's preprocessor. Issue: ZEP-688 Change-Id: I893eb4619969695c1f980efd7c2ec9fa5dad136d Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
8b1958a36a
commit
4208976bfc
12 changed files with 139 additions and 512 deletions
|
@ -51,9 +51,5 @@ MEMORY
|
|||
IDT_LIST : ORIGIN = 2K, LENGTH = 2K
|
||||
}
|
||||
|
||||
#include <arch/x86/linker-common-sections.h>
|
||||
#include <arch/x86/linker.ld>
|
||||
|
||||
/* start adding platform specific linker sections here */
|
||||
|
||||
/* no sections should appear after linker-epilog.h */
|
||||
#include <arch/x86/linker-epilog.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue