llvm lld linking relocatable object files (-r option)


On AArh64, combining relocatable object files into single object file is not yet supported in lld (-r option).
Using -r linker option throws below error message.
"-r option is not supported. Use 'ar' command instead."

Implementation of -r option is deprioritized or is there any reason for not implementing it?

Shridhar Joshi

Hi !
I think youre trying to use some old version of lld. Currently we have support of -r option for all targets.
Try to take newer (ideally the latest) revision.