summaryrefslogtreecommitdiffstats
path: root/spec/build/bsps/x86_64/amd64/optldpagesize.yml
blob: f445eae60669b7f9d7209fe6829ef3392aef6fe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- assert-uint32: null
- env-assign: null
- set-value: -Wl,-z,max-page-size=${LD_MAX_PAGE_SIZE:#010x}
- substitute: null
- env-append: LDFLAGS
- env-append: PKGCONFIG_LDFLAGS
build-type: option
copyrights:
- Copyright (C) 2023 Karel Gardas
default:
- enabled-by: true
  value: 4096
description: |
  Set the value of max-page-size parameter for the GNU linker.
  By default on x86_64 the linker is using 2MB page size which is
  too big for creating correctly formed and later recognized multiboot2
  binaries. Default value 4k used here is working well for the purpose.
enabled-by: true
format: '{:#010x}'
links: []
name: LD_MAX_PAGE_SIZE
type: build