How to align ARM BSP .data section on 4K boundary

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Sep 6 05:03:35 UTC 2017


On 26/08/17 23:31, Joel Sherrill wrote:

> Hi
>
> Using the shared linkcmds, what's the magic to get .data on a 4K boundary?

Maybe you can add a empty array with a 4KiB alignment attribute.

If you want to place all read-write data on a 4KiB boundary, then use

bsp_section_rwbarrier_align = 4096;

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list