See this simple example (with the old GNU ld):
$ cat a.c
#include
void hello(void)
{
printf("hello\n");
}
$ cat b.c
void hello(void);
void say_hello(void)
{
hello();
}
$ cat c.c
void say_hello(void);
int main()
{
say_hello();
return 0;
}
$ gcc -fPIC -share
--- Additional Comments From bugmenot at mailinator dot com 2009-05-04
00:12 ---
Never mind, this was a stripped down testcase from a bigger problem which was
wrong.
--
What|Removed |Added
-
When used through the DMD D2 (2.029) compiler[1] to compile even the simplest
program I get the error:
/usr/bin/ld: internal error in relocate_sections, at ../../gold/reloc.cc:737
collect2: ld returned 1 exit status
Here is the D trivial program:
module hello;
void main(char[][] args)
{
}
Thi
--- Additional Comments From JayS at spectralogic dot com 2009-05-04 03:50
---
Subject: RE: R_ARM_THM_PC8 Relocation Not Implemented in elf32-arm.c
Owen, Nick, et. al.,
I've been working towards the same objective and stumbled across your post.
I tried Nick's fix of 4/21 and had simi