Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BACKPORT] arm64_head.S: Add explicit input section for __start #231

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

pussuw
Copy link

@pussuw pussuw commented Mar 25, 2024

As __start must be placed at a precise location, a separate, explicit input section is needed to guarantee this.

Why is this an issue ? NuttX uses --entry=__start which puts __start in its correct location, but out-of-tree builds won't work, so it more robust to use an explicit section for the startup code and enforce its placement in the linker script.

As __start must be placed at a precise location, a separate, explicit
input section is needed to guarantee this.

Why is this an issue ? NuttX uses --entry=__start which puts __start in
its correct location, but out-of-tree builds won't work, so it more robust
to use an explicit section for the startup code and enforce its placement
in the linker script.
@pussuw pussuw requested a review from jlaitine March 25, 2024 08:30
@pussuw pussuw merged commit 5d9f63f into master Mar 25, 2024
7 checks passed
@pussuw pussuw deleted the arm64_start branch March 25, 2024 10:26
pussuw pushed a commit that referenced this pull request Aug 27, 2024
"/home/guoshichao/work_profile/vela_os/vela_car_4/nuttx/include/nuttx/net/netdev.h", line 493: warning #231-D:
          declaration is not visible outside of function
                                            FAR struct netdev_ifaddr6_s *addr,
                                                       ^

Signed-off-by: guoshichao <[email protected]>
pussuw pushed a commit that referenced this pull request Aug 27, 2024
…f function" warning

CC:  serial/serial_io.c "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/power/regulator.h", line 227: warning #231-D:
          declaration is not visible outside of function
  int regulator_gpio_init(FAR struct ioexpander_dev_s *iodev,

Signed-off-by: yanghuatao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants