summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2002-11-19Remove use of $(strip) when no longer needed. Fixup DODEBUGEric Andersen
so when debugging is enabled we don't enable all the major optimizations. -Erik
2002-11-19Implement dynamic atexit handling. Adds a few bytes and a dependancyEric Andersen
on malloc (via realloc). -Erik
2002-11-19Silence some whiningEric Andersen
2002-11-19Aidan Van Dyk noticed that _toupper and _tolower were misbehaving.Eric Andersen
This corrects them, per SuSv3.
2002-11-19Per suggestion from Stefan Allius, change DO_MPROTECT_HACKS toEric Andersen
the more clear FORCE_SHAREABLE_TEXT_SEGMENTS.
2002-11-19Stefan Allius writes:Eric Andersen
I fixed two little bugs in ldso.c: - For LDD support we test the old environment variable LD_TRACE_LOADED_OBJECTS. - Before we init the GOT table of the dynamic loader we have to check, if we have a DT_PLTGOT entry. If DT_PLTGOT was zero we patch somthing in the header of the dynamic loader. This was the cause, why we have to enable the DO_MPROTECT_HACKS option for all targets, to avoid segment faults. In readelflib1.c I added a warning, if we try to load a shared library, which wasn't compiled with -fPIC or -fpic. So if we disable the DO_MPROTECT_HACKS option we are sure, that we don't waste memory by shared libraries which aren't able to share their text segment. I think this is a helpful option on little embedded systems.
2002-11-19cut-n-paste typoEric Andersen
2002-11-19Update to sync up with glibc 2.3Eric Andersen
2002-11-15For now, revert Ronald Wahl's change to dlopen. We need toEric Andersen
look into what is breaking dlclose() further... -Erik
2002-11-15This draws from an old patch by David Blythe for the now-deadEric Andersen
unified syscall interface. I reworked his old patch considerably and cleaned up his version of bits/syscalls.h with some sneaky macro magic. And I implemented a powerpc correct version of pread/pwrite -Erik
2002-11-15Cleanup a few structural wierdnessesEric Andersen
2002-11-15Stefan Allius writes:Eric Andersen
I attached a patch, which revise the clone.S and vfork.S: - Use PIC code. - include new file syscall.S, so we can simply make a branch to __syscall_error instead of a PLT/GOT call - call errno_location to store the syscall error (for pthreads) - avoid to use the 'shad' statement on SH2 targets - call fork if vfork isn't available - some cleanups and optimization
2002-11-15Remove obsolete filesEric Andersen
2002-11-15Fix it for real this time.Eric Andersen
2002-11-15Doh! I screwed that one all up. Lets try that again...Eric Andersen
-Erik
2002-11-15Only build the 64 tests when relevantEric Andersen
2002-11-15Add in a pread/pwrite testEric Andersen
2002-11-15Patch from Luc Van Oostenryck to fix a buffer overflowEric Andersen
in getlogin_r
2002-11-15Stefan Allius writes:Eric Andersen
Hi Erik, I added the FPU support for the setjmp/longjmp stuff. This patch also moves the code from the bsd*.S files to the setjmp.S file, so we can use simple branch instructions instead of referencing over the .GOT/.PLT section. This makes the PIC code much easier, smaller and faster. (The idea comes from the SPARC target) Bye Stefan
2002-11-15Fixup minislang linkEric Andersen
2002-11-15Ronald Wahl writes:Eric Andersen
since uclibc-0.9.16 I have to specify -fpic during _link_-time or else I get an error from the dynamic linker when I load shared objects. Patch is appended.
2002-11-15Ronald Wahl writes:Eric Andersen
I noticed that dlclose() does not work since libraries loaded with dlopen are not marked as "loaded_file". This breaks apache with dynamic modules. I append a small fix against uClibc-0.9.16.
2002-11-15I was an idiot and put _fini into the wrong register. Duh.Eric Andersen
This patch from David Meggy fixes it...
2002-11-14As released in uClibc 0.9.16, regex was being compiled withoutEric Andersen
wide char support, even when the rest of uClibc was. This led to anyone using regex segfaulting... -Erik
2002-11-14Minor cleanupEric Andersen
-Erik
2002-11-14Implement sendfile64Eric Andersen
-Erik
2002-11-14Add missing quotesEric Andersen
-Erik
2002-11-12A powerpc patch from Ronald Wahl:Eric Andersen
Ok, now i got it after a day of work. I have had a look into glibc and found the following: sysdeps/powerpc/dl-machine.c: ... case R_PPC_JMP_SLOT: /* It used to be that elf_machine_fixup_plt was used here, but that doesn't work when ld.so relocates itself for the second time. On the bright side, there's no need to worry about thread-safety here. */ { Elf32_Sword delta = finaladdr - (Elf32_Word) reloc_addr; ... The comment made me suspicious. The same position in uClibc looks like this: ldso/ldso/powerpc/elfinterp.c: ... case R_PPC_JMP_SLOT: { unsigned long targ_addr = (unsigned long)_dl_linux_resolve; int delta = targ_addr - (unsigned long)reloc_addr; ... When I change it to the following it works: ... case R_PPC_JMP_SLOT: { unsigned long targ_addr = *reloc_addr; int delta = targ_addr - (unsigned long)reloc_addr; ... I hope it will not break anything. Can anyone review this change and commit it into CVS? thanks, ron
2002-11-11Add in 'ldso' to directory list since 'make clean' was not recursing"Steven J. Hill"
into it.
2002-11-10Don't link to us.kernel.orgEric Andersen
2002-11-09fix typoAaron Lehmann
2002-11-09Update from upstreamEric Andersen
2002-11-09For arm use -mcpu for the moment, since it seems to workEric Andersen
2002-11-09typo fixesEric Andersen
2002-11-09Make sure we have __linux__ definedEric Andersen
2002-11-09Manditory typo..Eric Andersen
2002-11-09Final update for 0.9.16Eric Andersen
2002-11-09Patch from Simon Rowe to try and build asm libm codeEric Andersen
only when HAS_FPU is set. If you don't have an FPU then usm FPU code isn't going to help much...
2002-11-09Patch from Stefan Allius, rebuild extra/config/conf if it is missingEric Andersen
following a make clean
2002-11-09Patch from Stefan Allius: avoid implicit casting of void *(64bit) to int(32bit)Eric Andersen
2002-11-08Re-enable the strchrnul and rawmemchr testsEric Andersen
2002-11-08Scare people away from enabling locale support for now.Eric Andersen
2002-11-08Disable ldso debugging. It should not be on by default.Eric Andersen
2002-11-08Use NATIVE_CC. Don't hard code using 'gcc'.Eric Andersen
-Erik
2002-11-08Patch from Stefan Allius for libgcc multilib supportEric Andersen
this is the last patch, we need to make the support of multitarget libgcc complete. --------------------------------- In ldso/ldso/Makefile I added the CPU_LDFLAGS-y to the LDFLAGS --------------------------------- In libc/Makefile I set the LDFLAGS for the script get-needed-objects.sh with CPU_LDFLAGS-y --------------------------------- In extra/scripts/get-needed-object.sh we now use the LIBGCC from Rules.mak and call LD with LDFLAGS (==CPU_LDFLAGS-y). Addtionally I grep the NM output, to fix the unresolved external __GLOBAL_OFFSET_TABLE__ on SuperH targets. ---------------------------------
2002-11-08Disble unimplemented function prototypesEric Andersen
2002-11-08Patch from Stefan Allius to fixup SuperH ARCH_HAS_MMU and ARCH_HAS_FPUEric Andersen
2002-11-08Initial checkin.Miles Bader
2002-11-08Add CPU_CFLAGS-y into LIBGCC_CFLAGS so multilibs gcc will behaveEric Andersen
itself. Revery the "=" to ":=" change, so people like Miles can set stuff in their .config
2002-11-08Add defaults for powerpcEric Andersen