8000 libnix guru on AOS3.1 · Issue #97 · bebbo/libnix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

libnix guru on AOS3.1 #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
agreppin opened this issue Mar 15, 2025 · 3 comments
Open

libnix guru on AOS3.1 #97

agreppin opened this issue Mar 15, 2025 · 3 comments
Labels
close pending no feedback... invalid This doesn't seem right

Comments

@agreppin
Copy link

I'm trying to update the rsync-2.5.5 port found on Aminet.
I started with a build with ADE/gcc-2.9... + ixemul-48, with partial success.

I'm now trying using amiga-gcc, with the following results when running just rsync -h:

  • in Amiberry works fine
  • A3000 OS3.1 -> GURU 8000004
  • A3000 ClassibWB_68k -> GURU 8000004
  • A3000 OS3.2 works fine (3x the same machine with Kick3.1)
  • V4SA OS3.2 -> GURU 8000000A/B

compiling with those flags:

m68k-amigaos-gcc -O2 -mcpu=68000 -mcrt=nix20 -DHAVE_CONFIG_H -Wall -W -I../popt -lm -o rsync rsync.o ... -lsocket

https://github.com/agreppin/amiga-rsync

@bebbo bebbo added the invalid This doesn't seem right label Mar 16, 2025
@bebbo
Copy link
Owner
bebbo commented Mar 16, 2025

That is far too imprecise.

@bebbo bebbo added the close pending no feedback... label Mar 16, 2025
@agreppin
Copy link
Author
agreppin commented Mar 16, 2025

Looking at the problem with a debugger now, I can say it's not a problem with libnix per se.
I think the is a problem with the relocations in _INIT_LIST. When not ok, the address of __initlibraries points in the middle of another functi 83F8 on ...

How can I get some help to solve this problem ?

Edit 1:
hum, the relocation offset is ok, but the code at that location is not ___initlibraries

@agreppin
Copy link
Author
agreppin commented Apr 1, 2025

here is a minimal example code to reproduce the bug:

#include <sys/select.h>

int main(int ac, char **av)
{
	if (ac == 777)
		return select(0, NULL, NULL, NULL, NULL);
	return 0;
}

__initsocket triggers calls to putc before __initstdio is called,
resulting in a whole lot of enforcer hits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close pending no feedback... invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants
0