Skip to content

Commit e9013bb

Browse files
committed
ld: depend on libctf
Since ld may depend on libctf (if present), and libctf may be relinked by the installation process, libctf must be installed before ld is, or the relink may fail if it calls on symbols or symbol versions that do not exist in any libctf already present on the system. (If none is present, the copy in the build tree will be automatically used, but if one *is* present, it may take precedence and break things.) (This is a maybe- dependency, so it will work even if libctf is disabled.) ChangeLog 2021-01-26 Nick Alcock <nick.alcock@oracle.com> * Makefile.def: Add install-libctf dependency to install-ld. * Makefile.in: Regenerated.
1 parent 185390e commit e9013bb

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2021-01-26 Nick Alcock <nick.alcock@oracle.com>
2+
3+
* Makefile.def: Add install-libctf dependency to install-ld.
4+
* Makefile.in: Regenerated.
5+
16
2021-01-09 Nick Clifton <nickc@redhat.com>
27

38
* 2.36 release branch crated.

Makefile.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ dependencies = { module=all-binutils; on=all-intl; };
448448
dependencies = { module=all-binutils; on=all-gas; };
449449
dependencies = { module=all-binutils; on=all-libctf; };
450450
dependencies = { module=all-ld; on=all-libctf; };
451+
dependencies = { module=install-ld; on=install-libctf; };
451452

452453
// We put install-opcodes before install-binutils because the installed
453454
// binutils might be on PATH, and they might need the shared opcodes

Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52111,6 +52111,7 @@ all-stage3-ld: maybe-all-stage3-libctf
5211152111
all-stage4-ld: maybe-all-stage4-libctf
5211252112
all-stageprofile-ld: maybe-all-stageprofile-libctf
5211352113
all-stagefeedback-ld: maybe-all-stagefeedback-libctf
52114+
install-ld: maybe-install-libctf
5211452115
install-binutils: maybe-install-opcodes
5211552116
install-strip-binutils: maybe-install-strip-opcodes
5211652117
install-opcodes: maybe-install-bfd

0 commit comments

Comments
 (0)