Use -Os for rdc and -O2 for the x86 target