Sign in Join

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

Mailing lists / fpc-devel / 2002-07

1.1 internal linker

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Sergey Korshunoff

Hi!

It is true that internal linker is implemented only for Go32v2? How good it is? Is there any problems with Go32v32 internal linker? What is left to do to implement
internal linker for ELF?

Regards,
Sergey Korshunoff

Reply by email

Florian Klaempfl
to Sergey Korshunoff
you wrote
Hi! It is true that internal linker is implemented only for Go32v2? How good it is?

As it is relatively new it may still have some bugs.

Is there any problems with Go32v32 internal linker? What is left to do to implement internal linker for ELF?

Hmmm, Peter could answer this but he is on holiday the next two or three weeks.

Reply by email

Jonas Maebe
to Sergey Korshunoff: Hi! It is true that internal linker is implemented only for Go32v2? How good it is? Is…
Sergey Korshunoff wrote
It is true that internal linker is implemented only for Go32v2?

Yes.

How good it is? Is there any problems with Go32v32 internal linker?

At least stabs support and stripping of symbols isn't implemented yet. But make cycle already works with it.

What is left to do to implement internal linker for ELF?

That's for Peter to explain. He started with go32v2 because coff is the most simple object format.

Jonas

Reply by email

Peter Vreman
to Sergey Korshunoff: Hi! It is true that internal linker is implemented only for Go32v2? How good it is? Is…
you wrote 6 lines
Hi! It is true that internal linker is implemented only for Go32v2? How good it is? Is there any problems with Go32v32 internal linker? What is left to do to implement internal linker for ELF?

The internal linker is only implemented for basic stuff yet. A lot of things are still hardcoded and need to be changed.

It's implemented only for go32v2 COFF because that executable format is the easiest.

For ELF linking you need more sections and you can't simply ignore the dynamic linking stuff.

What still needs to be done:
- Make the section/memory map not hardcoded
- Remove all references to target_asm and create a target_ld for them
- Linking with static libraries (required for smartlinking)
- Thighter integration with PPU files (no .o files needed)

When that all works for go32v2 COFF then the other targets can be implemented.

Peter

Reply by email