aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mips/sys/sbrk.S
Commit message (Collapse)AuthorAgeFilesLines
* Reimplement brk() and sbrk() to avoid the use of _end.Mark Johnston2018-06-041-73/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Previously, libc.so would initialize its notion of the break address using _end, a special symbol emitted by the static linker following the bss section. Compatibility issues between lld and ld.bfd could cause the wrong definition of _end (libc.so's definition rather than that of the executable) to be used, breaking the brk()/sbrk() interface. Avoid this problem and future interoperability issues by simply not relying on _end. Instead, modify the break() system call to return the kernel's view of the current break address, and have libc initialize its state using an extra syscall upon the first use of the interface. As a side effect, this appears to fix brk()/sbrk() usage in executables run with rtld direct exec, since the kernel and libc.so no longer maintain separate views of the process' break address. PR: 228574 Reviewed by: kib (previous version) MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D15663 Notes: svn path=/head/; revision=334626
* use PTR_WORD for __curbrk and minbrk instead of .word, the new versionJayachandran C.2010-06-251-1/+1
| | | | | | | | | wil support all ABIs. Approved by: rrs (mentor) Notes: svn path=/head/; revision=209521
* Merge jmallett@'s n64 work into HEAD - changeset 1.Jayachandran C.2010-06-161-22/+10
| | | | | | | | | | | | Update libc assembly code to use macros that work on both o32 and n64. Merge string functions from NetBSD. The changes are from http://svn.freebsd.org/base/user/jmallett/octeon Approved by: rrs (mentor), jmallett Notes: svn path=/head/; revision=209231
* Add mips support libc from the mips2-jnpr branch of perforce.Warner Losh2008-04-261-0/+85
| | | | Notes: svn path=/head/; revision=178580
* Remove these abortive MIPS bits.David E. O'Brien2002-03-231-64/+0
| | | | Notes: svn path=/head/; revision=93033
* Bring in initial libc support for mips. These files were taken fromWarner Losh1999-03-031-0/+64
the OpenBSD tree and should be considered preliminary. They are here to facilitate building of the tree. Notes: svn path=/head/; revision=44440