Hi Anuj Tanksali,
Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
Firstly, the linker file is configurable, however, the format of the linker file is not the same for the different IDEs, so I'd highly recommend you to refer to the user guide of the corresponding IDE to learn how to manage the linker file.
Thank you for your reply.
I have already gone through the MCUXpresso 11.1 user manual and it does not contain any information about using the pre-processor directives such as #ifdef in the linker file. Could you please point me to any link or information if available.