Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-12

Linker error

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

What could be the cause of this linker error:

main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet /usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text' /usr/bin/ld.bfd: final link failed: Bad value

Mattias

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote 6 lines
What could be the cause of this linker error: main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet /usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text' /usr/bin/ld.bfd: final link failed: Bad value

A buggy assembler? There is indeed no relocation type 42 for ELF/x86-64. Does that happen with the official FPC release? Does objdump -r /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o show any unknown relocation types?

Jonas

Jonas Maebe
to Mattias Gaertner: What could be the cause of this linker error: main.pp(6923,23) Warnung: Symbol…

Mattias Gaertner wrote on Fri, 18 Dec 2015:

Show quoted text 8 lines
What could be the cause of this linker error: main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet /usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text' /usr/bin/ld.bfd: final link failed: Bad value

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807170#19

Jonas

Mattias Gaertner
to Jonas Maebe
Show quoted text 13 lines
Mattias Gaertner wrote on Fri, 18 Dec 2015: > What could be the cause of this linker error: > > main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet > /usr/bin/ld.bfd: warning: ../link.res contains output sections; did > you forget -T? > /usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o: > unrecognized relocation (0x2a) in section `.text' > /usr/bin/ld.bfd: final link failed: Bad value https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807170#19

Does that mean the fpc 3.0.0 (rc-buggy) package only works on debian unstable?

Mattias

Jonas Maebe
to Mattias Gaertner

Mattias Gaertner wrote on Fri, 18 Dec 2015:

Show quoted text 7 lines
On Fri, 18 Dec 2015 11:30:00 +0100 Jonas Maebe wrote: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807170#19 Does that mean the fpc 3.0.0 (rc-buggy) package only works on debian unstable?

It should work on Debian experimental/rc-buggy and on Debian sid/unstable (since those newer binutils have been accepted into Debian sid/unstable:
https://packages.qa.debian.org/b/binutils/news/20151209T162037Z.html ).

Jonas