link.res is automatically generated and the INPUT section contents regarding dynamic libraries are extracted from used units. As I said last time, you have to dig in yourself because we don't have access your full project, so we have no idea how that kernel32 thing can end up in your project. If it's not part of Indy, that means it's something in your sources (or any other packages you use). Perhaps a "find in files" with regex "\{\$linklib\s+kernel32\}" will do.