This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][ARM][libgloss] Make text segment 64k-aligned in the spec files


Hi all,

This patch fixes the 'text segment not a multiple of max page size' warnings that appeared recently in gcc+binutils bare-metal testing.
The problem is that the text segment in the aprofile-validation and aprofile-ve specs files is set to a non-64k-aligned position which doesn't sit well with the recently changed max page size in binutils.

The patch changes that address to 0x10000 which is 64k-aligned.

I've tested bare-metal arm-none-eabi builds with these spec files and everything seems to be in order.

If this is approved can someone please commit it for me?

Thanks,
Kyrill

[libgloss/]

2014-07-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* arm/elf-aprofile-validation.specs (*link): Make text segment
	64k-aligned.
	* arm/elf-aprofile-ve.specs (*link): Likewise.
diff --git a/libgloss/arm/elf-aprofile-validation.specs b/libgloss/arm/elf-aprofile-validation.specs
index ba0eafc..166a5de 100644
--- a/libgloss/arm/elf-aprofile-validation.specs
+++ b/libgloss/arm/elf-aprofile-validation.specs
@@ -8,7 +8,7 @@
 %rename link old_link
 
 *link:
---defsym=_rdimon_vector_base=0x00000000 -Ttext-segment=0x00008000 %(old_link)
+--defsym=_rdimon_vector_base=0x00000000 -Ttext-segment=0x00010000 %(old_link)
 
 %rename lib libc
 
diff --git a/libgloss/arm/elf-aprofile-ve.specs b/libgloss/arm/elf-aprofile-ve.specs
index 9dea410..d94bb7a 100644
--- a/libgloss/arm/elf-aprofile-ve.specs
+++ b/libgloss/arm/elf-aprofile-ve.specs
@@ -8,7 +8,7 @@
 %rename link old_link
 
 *link:
---defsym=_rdimon_vector_base=0x80000000 -Ttext-segment=0x80008000 %(old_link)
+--defsym=_rdimon_vector_base=0x80000000 -Ttext-segment=0x80010000 %(old_link)
 
 %rename lib libc
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]