public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* AARCH64 : C Model Small Alignment requirements
@ 2017-05-26  8:02 Pankaj Bansal
  2017-05-26  9:06 ` Ard Biesheuvel
  0 siblings, 1 reply; 2+ messages in thread
From: Pankaj Bansal @ 2017-05-26  8:02 UTC (permalink / raw)
  To: edk2-devel@lists.01.org, Ard Biesheuvel

Hello Edk2 team,

We are facing a compilation error in our ARMV8 based NXP board.
We are using c model small with GCC49 and GCC5.

"WriteSections64(): %s  due to its size (> 1 MB), this module requires 4 KB section alignment."

With below GCC options, this error is not observed

[BuildOptions]
   GCC:*_*_AARCH64_CC_FLAGS = -mcmodel=small
+  GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x1000

My question is, is this necessary to use page size 4K with c model small ?

P.S : This compilation error is not observed with default GCC49/GCC5 options (i.e. C Model tiny and Page Size 0x20)

Thanks & Regards,
Pankaj Bansal



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-26  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-26  8:02 AARCH64 : C Model Small Alignment requirements Pankaj Bansal
2017-05-26  9:06 ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox