4

I am using ld with a custom link script (modified from the default script used by gcc) and I noticed that the default value for CONSTANT(MAXPAGESIZE) on ARM is 64KiB. I need this value to be 4KiB.

I am aware that I can change this value on the command line by invoking

ld -z max-page-size=0x1000 .....

However I'd like to know if there is a way to change the value of the symbolic constant MAXPAGESIZE in the script rather than on the command-line, in order to just give the script to co-workers and not having to change their Makefiles.

At the moment, my fall-back plan is to hardcode the value by replacing CONSTANT(MAXPAGESIZE) with 0x1000 inside the script.

Vinz
  • 5,997
  • 1
  • 31
  • 52

1 Answers1

1

here : link-ldflags += -z max-page-size=4096

leesagacious
  • 182
  • 1
  • 8