summaryrefslogtreecommitdiff
path: root/rts/Linker.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add getGCStatsEnabled function.Paolo Capriotti2012-06-191-0/+1
|
* Build fix for Hurd.Paolo Capriotti2012-06-171-2/+2
| | | | | | Patch by Samuel Thibault. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659530.
* Fix build on win64Ian Lynagh2012-06-161-0/+1
|
* Don't use 64-bit support functions on MIPS N32.Michał Masłowski2012-06-091-1/+1
| | | | | It uses native 64-bit instructions instead of these, despite having 32-bit pointers.
* Fix build on Win64Ian Lynagh2012-05-101-0/+1
|
* Don't pointlessly cast sizeof's result to size_tIan Lynagh2012-05-091-1/+1
|
* Merge branch 'master' of darcs.haskell.org:/srv/darcs//ghcIan Lynagh2012-05-081-2/+3
|\
| * Enable FileLock for win32 (#4363)Paolo Capriotti2012-05-081-2/+2
| |
| * Move getMonotonicUSec from base to the RTS.Paolo Capriotti2012-05-081-0/+1
| |
* | Add support for .text.startup sections to the LinkerIan Lynagh2012-05-071-0/+1
|/ | | | We get these in a full build on Win64
* Fix alignment when loading .a files on Win64Ian Lynagh2012-05-071-2/+17
|
* Test for misaligned sections, and fail if we find oneIan Lynagh2012-05-071-0/+4
|
* Fix RTS DLL references on Win64Ian Lynagh2012-05-061-1/+5
|
* Working towards fixing DLLs on Win64Ian Lynagh2012-05-061-2/+2
|
* Add _getpid to rtsSyms on Win64Ian Lynagh2012-05-031-0/+1
|
* More Win64 ghci fixesIan Lynagh2012-05-021-0/+161
|
* Win64 Linker improvementsIan Lynagh2012-05-021-4/+49
| | | | | | | We now detect if we are given a value that is out of range for a 32bit relocation, and fail with an error. Added a load more symbols to rtsSyms.
* Add 'free' to the list of rtsSyms on Win64Ian Lynagh2012-05-021-0/+1
| | | | | | | | | | Without this, we ended up using (gdb) info symbol 0x7ff756a10ac msvcrt!free in section .text of C:\Windows\system32\msvcrt.dll for free, rather than (gdb) info symbol 0x2584128 free in section .text of C:\m64\ghci2\q/../inplace/bin/ghc-stage2.exe but we were trying to put the address into a 32bit relocation.
* Tell checkProddableBlock how many bytes we want to writeIan Lynagh2012-05-011-18/+23
| | | | | | | | | It doesn't suffice for checkProddableBlock to just check whether the largest possible write could be made at the address we are writing, as if we are making a smaller write then checkProddableBlock may conservatively think we will write off the end of the block. Thus we now tell checkProddableBlock how many bytes we will write.
* Revert "Revert "More Win32 build fixes""Ian Lynagh2012-05-011-27/+27
| | | | This reverts commit 29cd6f435f2afb332ad8faf39f5e920ff9c38d9a.
* Revert "Revert "Fix build of rts/Linker.c on Win32""Ian Lynagh2012-05-011-22/+28
| | | | This reverts commit 02cf6d6f71b5772aa4ddf1b70c192a802886e2c2.
* Revert "Revert "Get GHCi working on Win64""Ian Lynagh2012-05-011-35/+116
| | | | This reverts commit 27e585bda6ae8ab68f58abdcb9e06806414a6636.
* Revert "Get GHCi working on Win64"Manuel M T Chakravarty2012-05-011-116/+35
| | | | This reverts commit 05b55c670c7fe3fc01827ca02aafb6926c0b69cb.
* Revert "Fix build of rts/Linker.c on Win32"Manuel M T Chakravarty2012-05-011-28/+22
| | | | This reverts commit 0042c478f1169ddd9392fb39de7d0aed865a272e.
* Revert "More Win32 build fixes"Manuel M T Chakravarty2012-05-011-27/+27
| | | | This reverts commit e89ef70475fa5e9cf17af01b1b5d7fced0d2e13c.
* More Win32 build fixesIan Lynagh2012-04-301-27/+27
|
* Fixes for x86/LinuxIan Lynagh2012-04-301-4/+4
|
* Fix build of rts/Linker.c on Win32Ian Lynagh2012-04-301-22/+28
|
* Get GHCi working on Win64Ian Lynagh2012-04-301-35/+116
|
* Merge branch 'master' of darcs.haskell.org:/srv/darcs//ghcIan Lynagh2012-04-271-0/+1
|\
| * Add a new primop mkWeakNoFinalizer (#5879)Simon Marlow2012-04-271-0/+1
| |
* | Win32 build fixIan Lynagh2012-04-271-2/+2
| |
* | Fix warnings on Win64Ian Lynagh2012-04-261-8/+24
|/ | | | | | Mostly this meant getting pointer<->int conversions to use the right sizes. lnat is now size_t, rather than unsigned long, as that seems a better match for how it's used.
* Add symbol declaration for __fixunsdfdi in the linker.Paolo Capriotti2012-04-241-1/+2
|
* Add linker support for ELF on ARMBen Gamari2012-03-301-9/+336
| | | | | | | | | | | | | | | | | | | | | | | Add support for ELF objects on ARM to the runtime linker. While the list of relocation types in the "ELF for the ARM Architecture" specification spans four pages, we thankfully only see a handful of these in the wild. Thus, at the moment we only support the following .rel relocation types, * R_ARM_ABS32 * R_ARM_TARGET1 * R_ARM_REL32 * R_ARM_CALL * R_ARM_JUMP24 * R_ARM_MOVT_ABS * R_ARM_MOVW_ABS_NC * R_ARM_THM_CALL * R_ARM_THM_JUMP24 * R_ARM_THM_MOVT_ABS * R_ARM_THM_MOVW_ABS_NC * R_ARM_THM_JUMP8 * R_ARM_THM_JUMP11 Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
* Soem more Wind64 fixesIan Lynagh2012-03-161-15/+22
| | | | | We may need to do this differently once we get as far as building the RTS in the dyn ways.
* check for failed external symbol lookups (partial fix for #5748)Gregory Wright2012-01-111-15/+81
|
* Make the RTS linker API use wide-char pathnames on Windows (#5697)Simon Marlow2012-01-091-53/+83
| | | | | I haven't been able to test whether this works or not due to #5754, but at least it doesn't appear to break anything.
* Define getNumberOfProcessors() even when !THREADED_RTSSimon Marlow2011-12-071-0/+1
|
* Add new primtypes 'ArrayArray#' and 'MutableArrayArray#'Manuel M T Chakravarty2011-12-071-0/+1
| | | | | | | | The primitive array types, such as 'ByteArray#', have kind #, but are represented by pointers. They are boxed, but unpointed types (i.e., they cannot be 'undefined'). The two categories of array types —[Mutable]Array# and [Mutable]ByteArray#— are containers for unboxed (and unpointed) as well as for boxed and pointed types. So far, we lacked support for containers for boxed, unpointed types (i.e., containers for the primitive arrays themselves). This is what the new primtypes provide. Containers for boxed, unpointed types are crucial for the efficient implementation of scattered nested arrays, which are central to the new DPH backend library dph-lifted-vseg. Without such containers, we cannot eliminate all unboxing from the inner loops of traversals processing scattered nested arrays.
* Allow the number of capabilities to be increased at runtime (#3729)Simon Marlow2011-12-061-0/+1
| | | | | At present the number of capabilities can only be *increased*, not decreased. The latter presents a few more challenges!
* loadArchive: need to allocate executable memory on Win32 (#5371)Simon Marlow2011-12-011-0/+5
|
* Fix potential crash on Windows: off-by-one in malloc()Simon Marlow2011-12-011-1/+1
| | | | Spotted by gdb's malloc debugger while I was looking for something else.
* Simplify a regexp and improve a couple of commentsIan Lynagh2011-11-201-4/+5
|
* fix new warnings with gcc 4.6Simon Marlow2011-11-181-4/+14
|
* Implement public interface for GC statistics.Edward Z. Yang2011-07-301-0/+1
| | | | | | | | | | | We add a new RTS flag -T for collecting statistics but not giving any new inputs. There is one new struct in rts/storage/GC.h: GCStats. We add two new global counters current_residency and current_slop, which are useful for in-program GC statistics. See GHC.Stats in base for a Haskell interface to this functionality. Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
* remove getOrSetTypeableStore. This is no longer used after the switchSimon Marlow2011-07-121-1/+0
| | | | to using MD5 hashes to identify TypeReps in the Typeable library.
* Fix gcc 4.6 warnings; fixes #5176Ian Lynagh2011-06-251-2/+12
| | | | | | | | | | | Based on a patch from David Terei. Some parts are a little ugly (e.g. defining things that only ASSERTs use only when DEBUG is defined), so we might want to tweak things a little. I've also turned off -Werror for didn't-inline warnings, as we now get a few such warnings.
* Remove unused variableIan Lynagh2011-06-241-2/+1
|
* Make array copy primops inlineJohan Tibell2011-05-191-6/+0
|