[PATCH 0/2] PR ld/26288: Allow the use of `--just-symbols' with ET_EXEC input

Fangrui Song i@maskray.me
Thu Jul 23 17:38:53 GMT 2020


On 2020-07-23, Nick Clifton via Binutils wrote:
>Hi Maciej,
>
>>  OK for master and 2.35?
>
>Approved (for both) - please apply.
>
>Cheers
>  Nick
>
>

An appropriate change is to special case --just-symbols:

gold/target.cc

   // ET_EXEC files are valid input for --just-symbols/-R,
   // and we treat them as relocatable objects.
   if (et == elfcpp::ET_REL
         || (et == elfcpp::ET_EXEC && input_file->just_symbols()))


More information about the Binutils mailing list