[PATCH] Introduce new gold plugin option "relocation-pic"

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Feb 10 12:33:40 PST 2014


On 10 February 2014 10:22, Alexey Volkov <avolkov.intel at gmail.com> wrote:
>
>   Ping

Sorry. I missed this the first time.

Why do you need a command line option? Why can't the linker tell you
that it needs a PIC output? We already have

      case LDPT_LINKER_OUTPUT:
        switch (tv->tv_u.tv_val) {
          case LDPO_REL:  // .o
          case LDPO_DYN:  // .so
          // FIXME: Replace 3 with LDPO_PIE once that is in a released binutils.
          case 3: // position independent executable
            output_type = LTO_CODEGEN_PIC_MODEL_DYNAMIC;

Cheers,
Rafael



More information about the llvm-commits mailing list