https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111417
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You either need to use -fno-delete-null-pointer-checks if you want symbols to be at address 0 . Or you mark MRAM2_region_size as being weak which allows the symbol to be null and the check for 0 to be there still.