linker: manage duplicates automatically