1. [ELF] Keep st_type for symbol assignment (details)
  2. [compiler-rt][Darwin] Refactor minimum deployment target substitutions (details)
Commit 9670029b6b302c75bb373fb1814f4e02790c4da8 by i
[ELF] Keep st_type for symbol assignment

PR46970: for `alias = aliasee`, the alias can be used in relocation processing
and on ARM st_type does affect Thumb interworking. It is thus desirable for the
alias to get the same st_type.

Note that the st_size field should not be inherited because some tools use
st_size=0 as a heuristic to detect aliases. Retaining st_size can thwart such
heuristics and cause aliases to be preferred over the original symbols.

Differential Revision:
The file was modifiedlld/ELF/LinkerScript.h (diff)
The file was modifiedlld/docs/ELF/linker_script.rst (diff)
The file was modifiedlld/ELF/LinkerScript.cpp (diff)
The file was modifiedlld/test/ELF/arm-thumb-interwork-ifunc.s (diff)
The file was modifiedlld/test/ELF/linkerscript/common-assign.s (diff)
The file was addedlld/test/ELF/linkerscript/symbol-assign-type.s
Commit 1f3c92f968edb8892ca7c152ca756f771a7f476d by julian.lettner
[compiler-rt][Darwin] Refactor minimum deployment target substitutions

* Support macOS 11+ version scheme
* Standardize substitution name `%min_deployment_target=x.y`
* Remove unneeded error cases (the input version is hard-coded)
* Specify version as tuple instead of string; no need to parse it

These changes should also facilitate a future addition of a substitution
that expands to "set deployment target to current target version"

Reviewed By: delcypher

Differential Revision:
The file was modifiedcompiler-rt/test/ (diff)
The file was modifiedcompiler-rt/test/asan/TestCases/initialization-bug.cpp (diff)