mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/link: Introduce a common BUGFRAMES definition
Bugframe linkage is identical in all architectures. This is not surprising given that it is (now) only consumed by common/virtual_region.c Introduce a common BUGFRAMES define in xen.lds.h ahead of rearranging their structure. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Acked-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
1 parent
0e7ea8ca5f
commit
337f11ea73
5 files changed
+21
-40
No files matched your search
+3
-10
@@ -55,16 +55,9 @@ SECTIONS
|
||||
. = ALIGN(PAGE_SIZE);
|
||||
.rodata : {
|
||||
_srodata = .; /* Read-only data */
|
||||
/* Bug frames table */
|
||||
__start_bug_frames = .;
|
||||
*(.bug_frames.0)
|
||||
__stop_bug_frames_0 = .;
|
||||
*(.bug_frames.1)
|
||||
__stop_bug_frames_1 = .;
|
||||
*(.bug_frames.2)
|
||||
__stop_bug_frames_2 = .;
|
||||
*(.bug_frames.3)
|
||||
__stop_bug_frames_3 = .;
|
||||
|
||||
BUGFRAMES
|
||||
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.data.rel.ro)
|
||||
|
||||
+3
-10
@@ -45,16 +45,9 @@ SECTIONS
|
||||
. = ALIGN(PAGE_SIZE);
|
||||
DECL_SECTION(.rodata) {
|
||||
_srodata = .; /* Read-only data */
|
||||
/* Bug frames table */
|
||||
__start_bug_frames = .;
|
||||
*(.bug_frames.0)
|
||||
__stop_bug_frames_0 = .;
|
||||
*(.bug_frames.1)
|
||||
__stop_bug_frames_1 = .;
|
||||
*(.bug_frames.2)
|
||||
__stop_bug_frames_2 = .;
|
||||
*(.bug_frames.3)
|
||||
__stop_bug_frames_3 = .;
|
||||
|
||||
BUGFRAMES
|
||||
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.data.rel.ro)
|
||||
|
||||
@@ -42,16 +42,9 @@ SECTIONS
|
||||
. = ALIGN(PAGE_SIZE);
|
||||
.rodata : {
|
||||
_srodata = .; /* Read-only data */
|
||||
/* Bug frames table */
|
||||
__start_bug_frames = .;
|
||||
*(.bug_frames.0)
|
||||
__stop_bug_frames_0 = .;
|
||||
*(.bug_frames.1)
|
||||
__stop_bug_frames_1 = .;
|
||||
*(.bug_frames.2)
|
||||
__stop_bug_frames_2 = .;
|
||||
*(.bug_frames.3)
|
||||
__stop_bug_frames_3 = .;
|
||||
|
||||
BUGFRAMES
|
||||
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.data.rel.ro)
|
||||
|
||||
+1
-10
@@ -127,16 +127,7 @@ SECTIONS
|
||||
. = ALIGN(PAGE_SIZE);
|
||||
__ro_after_init_end = .;
|
||||
|
||||
/* Bug frames table */
|
||||
__start_bug_frames = .;
|
||||
*(.bug_frames.0)
|
||||
__stop_bug_frames_0 = .;
|
||||
*(.bug_frames.1)
|
||||
__stop_bug_frames_1 = .;
|
||||
*(.bug_frames.2)
|
||||
__stop_bug_frames_2 = .;
|
||||
*(.bug_frames.3)
|
||||
__stop_bug_frames_3 = .;
|
||||
BUGFRAMES
|
||||
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
|
||||
@@ -114,6 +114,17 @@
|
||||
|
||||
/* List of constructs other than *_SECTIONS in alphabetical order. */
|
||||
|
||||
#define BUGFRAMES \
|
||||
__start_bug_frames = .; \
|
||||
*(.bug_frames.0) \
|
||||
__stop_bug_frames_0 = .; \
|
||||
*(.bug_frames.1) \
|
||||
__stop_bug_frames_1 = .; \
|
||||
*(.bug_frames.2) \
|
||||
__stop_bug_frames_2 = .; \
|
||||
*(.bug_frames.3) \
|
||||
__stop_bug_frames_3 = .;
|
||||
|
||||
#ifdef CONFIG_HYPFS
|
||||
#define HYPFS_PARAM \
|
||||
. = ALIGN(POINTER_ALIGN); \
|
||||
|
||||