This is PR36737.
Patch changes --just-symbols implementation so that we
count such files as inputs now.
Reimplementation also grants additional benefits. Now
--just-symbols file is added to Files and ObjectFiles just as
a regular input file.
With that, it not only allows our code to infer the ELF target automatically
(without additional changes) but also let the rest of LLD code to do its job too.
For example, I added test case showing we are able now to report symbols from
just symbols file with --cref.
You don't need to call this function to add a new file to Files. Let's keep it simple. Just call createObjectFile and directly add its return value to Files. Basically, you should avoid adding this kind of ad-hoc new parameter to an existing function.