I'm using the STM32L496 and have a bootloader at 0x08000000 of flash. After that, I have two partitions for applications, one at 0x08040000 which is the main application, and one at 0x080C0000 for a "golden image" that the bootloader can use if the main application is corrupted (the idea being the main app can be re-programmed with IAP). I've been able to modify the linker and scb->vtor setting so it will build the application to boot from either partition (golden image when main app is blank).
My question is, is there a way to do this without changing the linker and vector offset manually? Let's say I have a new build that is the new "golden image", I'd like to be able to build that so I can program it to each partition.