[PATCH] D30256: [ELF] - Implemented -z noreloc-overflow.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 08:01:02 PST 2017


> +  // -z noreloc-overflow is a specific feature used in kernels. When it is
> +  // enabled, we may emit a dynamic relocation against RO segment. In that
> +  // case we would need to add DT_TEXTREL flag to prepareruntime linker.
> +  // Though noreloc-overflow is usually for producing  self-relocatable
> +  // output which avoid use of dynamic linker.
> +  if (Config->ZNorelocOverflow && !Args.hasArg(OPT_no_dynamic_linker))
> +    error("-z noreloc-overflow may not be used without --no-dynamic-linker");
>  }

That is a really odd name if that is what it does. What fails to link if
you just ignore the option?

Cheers,
Rafael


More information about the llvm-commits mailing list