bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27597] nios: assertion fail in nios2_elf32_install_imm16


From: amodra at gmail dot com
Subject: [Bug ld/27597] nios: assertion fail in nios2_elf32_install_imm16
Date: Fri, 16 Feb 2024 12:17:06 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|nios: assertion fail        |nios: assertion fail in
                   |elf32-nios2.c:1881          |nios2_elf32_install_imm16

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
Testcase
cat > bigplt.c <<EOF
#define x(n) extern void x##n(void); x##n();
#define x10(n) x(n##0) x(n##1) x(n##2) x(n##3) x(n##4) x(n##5) x(n##6) x(n##7)
x(n##8) x(n##9)
#define x100(n) x10(n##0) x10(n##1) x10(n##2) x10(n##3) x10(n##4) x10(n##5)
x10(n##6) x10(n##7) x10(n##8) x10(n##9)
#define x1000(n) x100(n##0) x100(n##1) x100(n##2) x100(n##3) x100(n##4)
x100(n##5) x100(n##6) x100(n##7) x100(n##8) x100(n##9)

int main (void)
{
  x1000(0);
  x1000(1);
  x1000(2);
  x1000(3);
  x1000(4);
  x1000(5);
  return 0;
}
EOF
nios2-linux-gnu-gcc -fPIC -c bigplt.c
nios2-linux-gnu-gcc -shared -o bigplt.so bigplt.o

-- 
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]