Skip to content

Ocamlopt documentation updates#9980

Merged
Octachron merged 4 commits intoocaml:trunkfrom
xavierleroy:ocamlopt-doc
Oct 19, 2020
Merged

Ocamlopt documentation updates#9980
Octachron merged 4 commits intoocaml:trunkfrom
xavierleroy:ocamlopt-doc

Conversation

@xavierleroy
Copy link
Contributor

Including interactions with PIE.

Closes: ocaml#8867
No more "Intel Pentium" and "AMD Athlon".
code that is statically linked to produce a non-relocatable
executable. The generated code cannot be linked to produce a shared
library nor a position-independent executable (PIE). Many Linux
systems produce PIEs by default, causing errors when linking code
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpick: do we want to keep an up-to-date list of OSs with PIEs as default? For instance, openBSD seems to also produce PIE executable by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to keep an up-to-date list of OSs with PIEs as default?

No we don't want, because we are unable to.

However I can make the advice less specific: "Many operating systems produce PIEs by default..."

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This less specific wording seems more future-proof.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@Octachron Octachron merged commit 7acf73f into ocaml:trunk Oct 19, 2020
@xavierleroy xavierleroy deleted the ocamlopt-doc branch January 20, 2021 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ocamlopt -nodynlink does not work on armhf

3 participants