--ldpartial linker option
Enables you to link a partial object and combine sections in the output object.
You can control how the sections are combined with a scatter file or an ld script.
-r is a synonym for --ldpartial.
This option contrasts with the --partial option that does not combine sections.