in order to use a linked file you have no special compiler requirements. You just need to adapt your buildsystem to treat this file specially.
GCC just allows you to do it more conveniently by having inline annotations so no special buildsystem treatment of the file is required.