bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/16177] R_ARM_COPY reloc generated for reference in writabl


From: sourceware at sub dot monoid.al
Subject: [Bug binutils/16177] R_ARM_COPY reloc generated for reference in writable section
Date: Sun, 08 Nov 2020 16:03:55 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16177

--- Comment #12 from Joe Hermaszewski <sourceware at sub dot monoid.al> ---
A much more simple reproducer for the error message I mentioned (from GHC's
configure script):

cat >actest.s <<-EOF
  .globl _start
  .p2align 4
_start:
  bkpt

.data
  .globl data_object
object_reference:
  .long data_object
  .size object_reference, 4
EOF

cat >aclib.s <<-EOF
  .data
  .globl data_object
  .type data_object, %object
  .size data_object, 4
data_object:
    .long 123
EOF

$AS -o aclib.o aclib.s
$LD -shared -o aclib.so aclib.o

$AS -o actest.o actest.s
$LD -o actest actest.o aclib.so

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]