Skip to content

64-bit variants R_X86_64_(GOTPC64|GOTOFF64|GOT64|PC64) are not supported #565

@parth-07

Description

@parth-07

We support 32-bit variants of GOT and PC-relative relocations, but not the 64-bit variants: R_X86_64_(GOTPC64|GOTOFF64|GOT64|PC64).

Reproducer:

#!/usr/bin/env bash

cat >1.c <<\EOF
#include <stdio.h>

int u ;

int main() { 
  u = 11;
  printf("u: %d\n", u);
  return 0;
}
EOF

musl-clang -o 1.o 1.c -c -ffunction-sections -static -mcmodel=large
LD=eld musl-clang -o 1.eld.out 1.o -static 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions