Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
98 user(s) are online (64 user(s) are browsing Forums)

Members: 0
Guests: 98

more...

Headlines

 
  Register To Post  

« 1 ... 13 14 15 (16) 17 18 19 20 »
Re: Qt 6 progress
Just popping in
Just popping in


See User information
@elfpipe

Quote:
So the problem seems to be, that the __CTOR_LIST__ entry at the beginning of shcrtbegin.c is not guaranteed to be inserted at the beginning of the section.


Because of limited time currently. I only flow everything very light to not get lost to much. But I think this issue is somewhere binutils. At least I think I read somewhere that the linker constructs/has to construct the array. So that it works if the code only has the start pointer.

Go to top
Re: Qt 6 progress
Just can't stay away
Just can't stay away


See User information
Check https://maskray.me/blog/2021-11-07-init-ctors-init-array

Other systems switched from .ctors/.dtors to .init_array/.fini_array in GCC version 4.7. Either this has to be done for AmigaOS 4.x as well (with the required changes in the shcrtbegin.c code), or maybe you can enable a backward compatibility option the the binutils config to continue using .ctors/.dtors instead.

Go to top
Re: Qt 6 progress
Just can't stay away
Just can't stay away


See User information
This is the current situation :

Qt6 with Dynamic Link

Go to top
Re: Qt 6 progress
Quite a regular
Quite a regular


See User information
@elfpipe

Cool! Congratulations!

Paul

Builder of Frankenthousand The monster A1000
The Young Frankenthousand A1-XE G4
X5000
Go to top
Re: Qt 6 progress
Just can't stay away
Just can't stay away


See User information
@elfpipe

AWESOME man!!!!!!

Go to top
Re: Qt 6 progress
Amigans Defender
Amigans Defender


See User information
I've seen that .ctors/.dtors on adtools is almost used only on os4 part. While all other OSes has moved to .init_array .fini_array.
Check for example MOS code (but you can use any other OS that use elf) under binutils/repo/bfd

i'm really tired...
Go to top
Re: Qt 6 progress
Just can't stay away
Just can't stay away


See User information
@elfpipe

Well done!

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Qt 6 progress
Just popping in
Just popping in


See User information
@elfpipe

I can't imagine having to fix the toolchain I'm using to port a GUI library to another OS. That was a huge effort and you should be commended. I've been following your progress for months and your work is quite impressive. You've opened the door to a large number of modern applications that can now be ported to OS4.

Go to top
Re: Qt 6 progress
Not too shy to talk
Not too shy to talk


See User information
@elfpipe

Congratualtions!!

I can just guess at how steep a mountain it is you're climbing.
Thank you very much for your efforts.

It's like you're making it look easy!

;D

PJS

Go to top
Re: Qt 6 progress
Not too shy to talk
Not too shy to talk


See User information
@elfpipe

Very well done!!!! Hero!

AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 550 / ATI X1950 / M-Audio 5.1 -> AmigaOS 4.1 FE / Linux / MorphOS
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the NET
Vampire V4SE TrioBoot
RPI4 AmiKit XE
Go to top
Re: Qt 6 progress
Just popping in
Just popping in


See User information
Well done, congrat!

Memento audere semper!
Go to top
Re: Qt 6 progress
Not too shy to talk
Not too shy to talk


See User information
@elfpipe

wow..well done. been following this as well. how possible is a port of Transmission torrent downlader be now?

Sam460ex 2GB 120Gb SSD&1Tb HD7750 Envy24HT A-Eon Drv 2.10+Warp3D New Uboot
Apollo v4 Standalone
Go to top
Re: Qt 6 progress
Amigans Defender
Amigans Defender


See User information
I've just tried in clib2 to use .init_array/fini_array and .init/.fini and they both doesn't work. No costructors is called. Not only. It seems constructors are not linked at all.
So the problem is both in elf and adtools.

i'm really tired...
Go to top
Re: Qt 6 progress
Just can't stay away
Just can't stay away


See User information
@thread

Thanks to all for the recommendations. I am looking forward to doing some more work on the Qt port soon.

@noXLar

It could be very easy. But as far as I remember, it uses a custom library, that needs to be ported. So it will not be enough to just use Qt6Network.

@afxgroup

If you are using latest elf.library, then be aware, that the startup code is never called. So support for init_array needs to be added to elf.library internally.

Go to top
Re: Qt 6 progress
Amigans Defender
Amigans Defender


See User information
no at moment i'm using a no-beta-test system with current adtools version and my clib2. But i think that adtools needs a lot of work to be compatible with latest changes in binutils.
BTW at moment:

clib2/libgcc/static works
clib2/libg++/static works
clib2/libgcc/shared works
clib2/libg++/shared crash because libstdc++ constructors are called before libc one

I'm trying to see if it is possible to fix this in clib2 at moment

i'm really tired...
Go to top
Re: Qt 6 progress
Just can't stay away
Just can't stay away


See User information
@afxgroup
Quote:
I've just tried in clib2 to use .init_array/fini_array and .init/.fini and they both doesn't work. No costructors is called. Not only. It seems constructors are not linked at all.
Did you update all amiga* linker scripts to create .init_array/.fini_array instead of .ctors/.dtors sections? If not it obviously can't work.

Go to top
Re: Qt 6 progress
Amigans Defender
Amigans Defender


See User information
no. I didn't change the linker scripts. But .init and .fini should be there and I get the same error. That's why I suspect it is a problem on both adtools and elf.library
However as I told in the post earlier the elf32-amigaos needs to be rewritten in my opinion (it lacks also .init/.fini part).
Check the mos one for example. It is totally different and more similar to newer one present on other platforms and it supports also .init_array/.fini_array:

case DT_PREINIT_ARRAYSZ:
                
name ".preinit_array";
                goto 
get_size;
            case 
DT_INIT_ARRAYSZ:
                
name ".init_array";
                goto 
get_size;
            case 
DT_FINI_ARRAYSZ:
                
name ".fini_array";

i'm really tired...
Go to top
Re: Qt 6 progress
Amigans Defender
Amigans Defender


See User information
@elfpipe

I've just tried the elf beta and I get no crash anymore. But while the static one works correctly (it prints some stuff in the console) the shared one doesn't print anything and exit.
I've checked with snoopy that .so files are loaded correctly by elf.library

i'm really tired...
Go to top
Re: Qt 6 progress
Just can't stay away
Just can't stay away


See User information
@afxgroup

The .init_array code still needs to be implemented in elf.library for shared objects. This is probably quite easy, but atm I'm occupied with another elf issue.

Go to top
Re: Qt 6 progress
Amigans Defender
Amigans Defender


See User information
@elfpipe

Ok no problem. Since as I wrote adtools needs to be patched too.

i'm really tired...
Go to top

  Register To Post
« 1 ... 13 14 15 (16) 17 18 19 20 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project