-
Notifications
You must be signed in to change notification settings - Fork 97
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
Document the behaviour difference between LLD and GNU LD while using --defsym for library selection #463
Conversation
…--defsym for library selection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding this! Please see some style and reference suggestions.
docs/migrating.md
Outdated
@@ -100,6 +100,9 @@ however there are some known differences to take into account, see: | |||
in the LLD documentation. | |||
* The [LLD and GNU linker incompatibilities](https://maskray.me/blog/2020-12-19-lld-and-gnu-linker-incompatibilities) | |||
blog post. | |||
* When selecting the printf/scanf library variant with `--defsym from=to`, lld includes not only the specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
capitalize LLD as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"library variant" - implementation variant?
and maybe further add implementation variant from picolibc
docs/migrating.md
Outdated
@@ -100,6 +100,9 @@ however there are some known differences to take into account, see: | |||
in the LLD documentation. | |||
* The [LLD and GNU linker incompatibilities](https://maskray.me/blog/2020-12-19-lld-and-gnu-linker-incompatibilities) | |||
blog post. | |||
* When selecting the printf/scanf library variant with `--defsym from=to`, lld includes not only the specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a reference to https://github.com/picolibc/picolibc/blob/main/doc/printf.md after the defsym to be clear when/how it is used.
docs/migrating.md
Outdated
@@ -100,6 +100,9 @@ however there are some known differences to take into account, see: | |||
in the LLD documentation. | |||
* The [LLD and GNU linker incompatibilities](https://maskray.me/blog/2020-12-19-lld-and-gnu-linker-incompatibilities) | |||
blog post. | |||
* When selecting the printf/scanf library variant with `--defsym from=to`, lld includes not only the specified | |||
printf/scanf library variant through defsym but also the PICOLIBC_DOUBLE_PRINTF_SCANF variant. To avoid linking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to add code formatting for defsym? or ever refer to it as --defsym
?
docs/migrating.md
Outdated
@@ -100,6 +100,9 @@ however there are some known differences to take into account, see: | |||
in the LLD documentation. | |||
* The [LLD and GNU linker incompatibilities](https://maskray.me/blog/2020-12-19-lld-and-gnu-linker-incompatibilities) | |||
blog post. | |||
* When selecting the printf/scanf library variant with `--defsym from=to`, lld includes not only the specified | |||
printf/scanf library variant through defsym but also the PICOLIBC_DOUBLE_PRINTF_SCANF variant. To avoid linking | |||
them into the application, you must include the --gc-sections linker flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"them" maybe "the default variant"?
docs/migrating.md
Outdated
@@ -100,6 +100,9 @@ however there are some known differences to take into account, see: | |||
in the LLD documentation. | |||
* The [LLD and GNU linker incompatibilities](https://maskray.me/blog/2020-12-19-lld-and-gnu-linker-incompatibilities) | |||
blog post. | |||
* When selecting the printf/scanf library variant with `--defsym from=to`, lld includes not only the specified | |||
printf/scanf library variant through defsym but also the PICOLIBC_DOUBLE_PRINTF_SCANF variant. To avoid linking | |||
them into the application, you must include the --gc-sections linker flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code format --gc-sections?
1. Add backquotes 2. Add the reference to https://github.com/picolibc/picolibc/blob/main/doc/printf.md 3. rephrase some words.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update! Please see some minor suggestions for your consideration.
docs/migrating.md
Outdated
* When selecting the printf/scanf library variant with `--defsym from=to`, lld includes not only the specified | ||
printf/scanf library variant through defsym but also the PICOLIBC_DOUBLE_PRINTF_SCANF variant. To avoid linking | ||
them into the application, you must include the --gc-sections linker flag. | ||
* When selecting the printf/scanf library variant with `--defsym from=to`, see: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* When selecting the printf/scanf library variant with `--defsym from=to`, see: | |
* When selecting the printf/scanf picolibc implementation variant with `--defsym from=to`, see |
docs/migrating.md
Outdated
printf/scanf library variant through defsym but also the PICOLIBC_DOUBLE_PRINTF_SCANF variant. To avoid linking | ||
them into the application, you must include the --gc-sections linker flag. | ||
* When selecting the printf/scanf library variant with `--defsym from=to`, see: | ||
[How to use defsym](https://github.com/picolibc/picolibc/blob/main/doc/printf.md), LLD includes not only the specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[How to use defsym](https://github.com/picolibc/picolibc/blob/main/doc/printf.md), LLD includes not only the specified | |
[Printf and Scanf levels in Picolibc](https://github.com/picolibc/picolibc/blob/main/doc/printf.md#printf-and-scanf-levels-in-picolibc), LLD includes not only the |
docs/migrating.md
Outdated
them into the application, you must include the --gc-sections linker flag. | ||
* When selecting the printf/scanf library variant with `--defsym from=to`, see: | ||
[How to use defsym](https://github.com/picolibc/picolibc/blob/main/doc/printf.md), LLD includes not only the specified | ||
printf/scanf implementation variant from picolibc through defsym but also the PICOLIBC_DOUBLE_PRINTF_SCANF variant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
printf/scanf implementation variant from picolibc through defsym but also the PICOLIBC_DOUBLE_PRINTF_SCANF variant. | |
printf/scanf implementation variant from picolibc specified through `--defsym`, but also the default PICOLIBC_DOUBLE_PRINTF_SCANF variant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…--defsym for library selection (ARM-software#463) * Document the behaviour difference between LLD and GNU LD while using --defsym for library selection * Addressing the comments. 1. Add backquotes 2. Add the reference to https://github.com/picolibc/picolibc/blob/main/doc/printf.md 3. rephrase some words. * Addressing the suggestions about wording/formatting.
…--defsym for library selection (ARM-software#463) * Document the behaviour difference between LLD and GNU LD while using --defsym for library selection * Addressing the comments. 1. Add backquotes 2. Add the reference to https://github.com/picolibc/picolibc/blob/main/doc/printf.md 3. rephrase some words. * Addressing the suggestions about wording/formatting.
No description provided.