[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v4 25/34] build_id: Provide ld-embedded build-ids
- To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, ross.lagerwall@xxxxxxxxxx, konrad@xxxxxxxxxx, andrew.cooper3@xxxxxxxxxx, mpohlack@xxxxxxxxx, sasha.levin@xxxxxxxxxx
- From: Julien Grall <julien.grall@xxxxxxx>
- Date: Wed, 16 Mar 2016 18:34:24 +0000
- Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>, Keir Fraser <keir@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
- Delivery-date: Wed, 16 Mar 2016 18:34:36 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
Hi Konrad,
On 15/03/2016 17:56, Konrad Rzeszutek Wilk wrote:
diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
index 9909595..187ef73 100644
--- a/xen/arch/arm/xen.lds.S
+++ b/xen/arch/arm/xen.lds.S
@@ -22,6 +22,9 @@ OUTPUT_ARCH(FORMAT)
PHDRS
{
text PT_LOAD /* XXX should be AT ( XEN_PHYS_START ) */ ;
+#if defined(BUILD_ID)
+ note PT_NOTE ;
+#endif
}
SECTIONS
{
@@ -50,16 +53,21 @@ SECTIONS
__stop_bug_frames_2 = .;
*(.rodata)
*(.rodata.*)
-
-#ifdef LOCK_PROFILE
- . = ALIGN(POINTER_ALIGN);
- __lock_profile_start = .;
- *(.lockprofile.data)
- __lock_profile_end = .;
I think this is a spurious change.
+#if !defined(BUILD_ID)
+ _erodata = .; /* End of read-only data */
#endif
Is it possible to move _erodata out of the section?
Something like:
.ALIGN(PAGE_SIZE);
_srodata = .; /* Read-only data */
.rodata : {
[...]
} :text
#if defined(BUILD_ID)
.note : {
} :text
#endif
_erodata = .; /* End of read-only data */
+ } :text
+#if defined(BUILD_ID)
No alignment required?
+ .note : {
+ __note_gnu_build_id_start = .;
+ *(.note.gnu.build-id)
+ __note_gnu_build_id_end = .;
+ *(.note)
+ *(.note.*)
_erodata = .; /* End of read-only data */
} :text
+#endif
.data : { /* Data */
. = ALIGN(PAGE_SIZE);
Regards,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|