Page MenuHomeFreeBSD

Use compiler driver to link BERI boot leaders
ClosedPublic

Authored by kan on Jan 5 2017, 1:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 6:16 AM
Unknown Object (File)
Thu, Jun 20, 12:01 AM
Unknown Object (File)
Wed, Jun 19, 1:29 PM
Unknown Object (File)
Wed, Jun 19, 1:26 PM
Unknown Object (File)
Wed, Jun 19, 1:20 PM
Unknown Object (File)
Wed, Jun 19, 12:45 PM
Unknown Object (File)
May 2 2024, 10:04 PM
Unknown Object (File)
May 2 2024, 10:04 PM
Subscribers

Details

Summary

Do not hardcode elf64-tradbigmips as output format in BERI linker scrips.
Unfortunately, in-tree toolchain and external newer versions of binutils
mean two different things under that. When creating elf binaries using
external toolchain, gcc uses elf64-tradbigmips-freebsd and so linker
script file has to match in order for ld to be able to create the final loader
binary.

Rather than trying to guess, remove hardcoded output format directive from
the linker directive files and use CC to invoke the linker instead.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kan retitled this revision from to Use compiler driver to link BERI boot leaders.
kan updated this object.
kan edited the test plan for this revision. (Show Details)
kan added reviewers: MIPS, rwatson, br, brooks.
kan set the repository for this revision to rS FreeBSD src repository - subversion.
brooks edited edge metadata.

This seems like the right fix and should do the right thing. I'm not usually using the loader so am not in a good position to test it.

This revision is now accepted and ready to land.Jan 5 2017, 6:03 PM
This revision was automatically updated to reflect the committed changes.