rts: Introduce mmapAnonForLinker
Previously most of the uses of mmapForLinker were mapping anonymous memory, resulting in a great deal of unnecessary repetition. Factor this out into a new helper. Also fixes a few places where error checking was missing or suboptimal.
Showing
- rts/Linker.c 11 additions, 1 deletionrts/Linker.c
- rts/LinkerInternals.h 1 addition, 0 deletionsrts/LinkerInternals.h
- rts/linker/Elf.c 11 additions, 8 deletionsrts/linker/Elf.c
- rts/linker/LoadArchive.c 2 additions, 2 deletionsrts/linker/LoadArchive.c
- rts/linker/M32Alloc.c 10 additions, 3 deletionsrts/linker/M32Alloc.c
- rts/linker/MachO.c 3 additions, 6 deletionsrts/linker/MachO.c
- rts/linker/SymbolExtras.c 1 addition, 1 deletionrts/linker/SymbolExtras.c
- rts/linker/elf_got.c 2 additions, 5 deletionsrts/linker/elf_got.c
Loading
Please register or sign in to comment