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

src: start the .text section with an asm symbol #31981

Closed

Commits on Feb 27, 2020

  1. src: start the .text section with an asm symbol

    We create an object file in assembly which introduces the symbol
    `__node_text_start` into the .text section and place the resulting
    object file as the first file the linker encounters. We do this to
    ensure that we can recognize the boundaries of the .text section when
    attempting to establish the address range to map to large pages.
    
    Additionally, we rename the section containing the remapping code from
    `.lpstub` to `lpstub` so as to take advantage of the linker's feature
    whereby it inserts the symbol `__start_lpstub` when the section's name
    can be rendered as a valid C variable. We need this symbol in order to
    avoid self-mapping the remapping code to large pages, because doing so
    would cause the process to crash.
    Gabriel Schulhof committed Feb 27, 2020
    Copy the full SHA
    00787b5 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2020

  1. Remove braces around single-statement if-body

    Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl>
    Gabriel Schulhof and bnoordhuis committed Feb 28, 2020
    Copy the full SHA
    174b6ba View commit details
    Browse the repository at this point in the history