* archures.c: Add some more MSP430 machine numbers.
[deliverable/binutils-gdb.git] / ld / emultempl / generic.em
index 20ec35613ab640fc0e067d2cf7f5243fe06b3d8d..dce2bffd1e8714678e0b795a014d9734915875cd 100644 (file)
@@ -57,6 +57,18 @@ gld${EMULATION_NAME}_before_parse (void)
 #ifndef TARGET_                        /* I.e., if not generic.  */
   ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
 #endif /* not TARGET_ */
+EOF
+  # The MSP430 port *needs* linker relaxtion in order to cope with large
+  # functions where conditional branches do not fit into a +/- 1024 byte range.
+  case ${target} in
+    msp430-*-* )
+fragment <<EOF
+  if (! link_info.relocatable)
+    TARGET_ENABLE_RELAXATION;
+EOF
+    ;;
+  esac
+fragment <<EOF
 }
 
 EOF
This page took 0.026987 seconds and 4 git commands to generate.