From: Janosch Frank <frankja@linux.ibm.com>
To: kvm@vger.kernel.org
Cc: linux-s390@vger.kernel.org, imbrenda@linux.ibm.com,
thuth@redhat.com, david@redhat.com, nsg@linux.ibm.com,
nrb@linux.ibm.com
Subject: [kvm-unit-tests PATCH v2 2/7] s390x: snippets: c: Cleanup flat.lds
Date: Thu, 12 Jan 2023 15:45:43 +0000 [thread overview]
Message-ID: <20230112154548.163021-3-frankja@linux.ibm.com> (raw)
In-Reply-To: <20230112154548.163021-1-frankja@linux.ibm.com>
There are a lot of things in there which we don't need for snippets
and the alignments can be switched from 64K to 4K since that's the
s390 page size.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
s390x/snippets/c/flat.lds | 28 +++++++++-------------------
1 file changed, 9 insertions(+), 19 deletions(-)
diff --git a/s390x/snippets/c/flat.lds b/s390x/snippets/c/flat.lds
index 260ab1c4..9e5eb66b 100644
--- a/s390x/snippets/c/flat.lds
+++ b/s390x/snippets/c/flat.lds
@@ -16,27 +16,22 @@ SECTIONS
QUAD(0x0000000000004000)
}
. = 0x4000;
+ /*
+ * The stack grows down from 0x4000 to 0x2000, we pre-allocoate
+ * a frame via the -160.
+ */
stackptr = . - 160;
stacktop = .;
+ /* Start text 0x4000 */
.text : {
*(.init)
*(.text)
*(.text.*)
}
- . = ALIGN(64K);
+ . = ALIGN(4K);
etext = .;
- .opd : { *(.opd) }
- . = ALIGN(16);
- .dynamic : {
- dynamic_start = .;
- *(.dynamic)
- }
- .dynsym : {
- dynsym_start = .;
- *(.dynsym)
- }
- .rela.dyn : { *(.rela*) }
- . = ALIGN(16);
+ /* End text */
+ /* Start data */
.data : {
*(.data)
*(.data.rel*)
@@ -44,11 +39,6 @@ SECTIONS
. = ALIGN(16);
.rodata : { *(.rodata) *(.rodata.*) }
. = ALIGN(16);
- __bss_start = .;
.bss : { *(.bss) }
- __bss_end = .;
- . = ALIGN(64K);
- edata = .;
- . += 64K;
- . = ALIGN(64K);
+ /* End data */
}
--
2.34.1
next prev parent reply other threads:[~2023-01-12 15:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-12 15:45 [kvm-unit-tests PATCH v2 0/7] s390x: Snippet fixes Janosch Frank
2023-01-12 15:45 ` [kvm-unit-tests PATCH v2 1/7] s390x: Cleanup flat.lds Janosch Frank
2023-01-12 17:05 ` Claudio Imbrenda
2023-01-12 15:45 ` Janosch Frank [this message]
2023-01-12 17:05 ` [kvm-unit-tests PATCH v2 2/7] s390x: snippets: c: " Claudio Imbrenda
2023-01-12 15:45 ` [kvm-unit-tests PATCH v2 3/7] s390x: Add a linker script to assembly snippets Janosch Frank
2023-01-12 17:05 ` Claudio Imbrenda
2023-01-12 15:45 ` [kvm-unit-tests PATCH v2 4/7] s390x: snippets: Fix SET_PSW_NEW_ADDR macro Janosch Frank
2023-01-12 15:45 ` [kvm-unit-tests PATCH v2 5/7] lib: s390x: sie: Set guest memory pointer Janosch Frank
2023-01-12 15:45 ` [kvm-unit-tests PATCH v2 6/7] s390x: Clear first stack frame and end backtrace early Janosch Frank
2023-01-12 15:45 ` [kvm-unit-tests PATCH v2 7/7] lib: s390x: Handle debug prints for SIE exceptions correctly Janosch Frank
2023-01-12 17:13 ` Claudio Imbrenda
2023-01-13 15:50 ` Janosch Frank
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230112154548.163021-3-frankja@linux.ibm.com \
--to=frankja@linux.ibm.com \
--cc=david@redhat.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=nrb@linux.ibm.com \
--cc=nsg@linux.ibm.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).