[PATCH] D44780: [ELF] - Implement linker script OVERLAYs.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 22 07:27:47 PDT 2018


grimar created this revision.
grimar added reviewers: ruiu, espindola.
Herald added subscribers: arichardson, emaste.

This is PR36768.

Linker script OVERLAYs are described in 4.6.9. Overlay Description of the spec:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/sections.html

They are used to allow output sections which have different LMAs but the same VAs
and used for embedded programming.

Currently, LLD restricts overlapping of sections and that seems to be the most desired
behaviour for defaults. My thoughts about possible approaches for PR36768 are on the bug page,
this patch implements OVERLAY keyword and allows VAs overlapping for sections that within the overlay.


https://reviews.llvm.org/D44780

Files:
  ELF/LinkerScript.h
  ELF/ScriptParser.cpp
  ELF/Writer.cpp
  test/ELF/linkerscript/overlay.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44780.139437.patch
Type: text/x-patch
Size: 10213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180322/fdb68fd3/attachment.bin>


More information about the llvm-commits mailing list