[uClibc] patch for gcj 3.4.2
Joakim Tjernlund
joakim.tjernlund at lumentis.se
Fri Sep 17 06:46:00 UTC 2004
> Here is a patch for gcc 3.4.2 to get gcj to compile with uClibc. All I
> did was grab the structure and define the function as weak from glibc
> headers. GCC actually checks if the function exists at runtime so this
> doesn't seem to be a problem.
>
> David
>
> --- gcc-3.4.2.orig/boehm-gc/dyn_load.c Wed Jul 30 10:42:28 2003
> +++ gcc-3.4.2/boehm-gc/dyn_load.c Thu Sep 16 13:45:03 2004
> @@ -86,6 +86,21 @@
> # include <stddef.h>
> # include <elf.h>
> # include <link.h>
> +
> +//stolen from glibc link.h
> +
> +struct dl_phdr_info
> +{
> + ElfW(Addr) dlpi_addr;
> + const char *dlpi_name;
> + const ElfW(Phdr) *dlpi_phdr;
> + ElfW(Half) dlpi_phnum;
> +};
> +
> +extern int dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
> + size_t size, void *data),
> + void *data) __THROW __attribute__ ((weak));
> +
> #endif
hmm, Erik removed this structure/function from uClibc a little while ago.
http://cvs.uclibc.org/lists/uclibc-cvs/2004-September/004753.html
Perhaps it should be added back to make gjc happy?
Jocke
More information about the uClibc
mailing list