[Bug 2036468] Review Request: mold - a modern linker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2036468



--- Comment #17 from Christoph Erhardt <fedora@xxxxxxxxxxx> ---
The (first) test that fails on aarch64 is one where mold is invoked directly
from a shell script.

When a linker is launched indirectly via the compiler driver, the latter tells
it about the desired emulation (e.g. `-m elf_x86_64` or `-m aarch64linux`). But
since mold is called directly here - without `-m` - it falls back to its
default behaviour: assuming `elf_x86_64`.

Here's what other linkers do:
ld.bfd and ld.gold seem to get their default emulation hardcoded at build time.
ld.lld is clever and detects the emulation from the input file(s).

Until mold adopts either the bfd/gold way or the lld way, the only path I see
right now would be to patch all test scripts where mold gets invoked directly.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2036468
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux