[PATCH] D17269: [ELF] - Implemented linkerscript sections padding.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 15 07:51:59 PST 2016
grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
BSD linker scripts contain special cases to add NOP padding to code sections. Syntax is next:
.init:
{
KEEP (*(.init))
} =0x90909090
(90 is NOP)
This patch implements that functionality.
http://reviews.llvm.org/D17269
Files:
ELF/InputSection.cpp
ELF/InputSection.h
ELF/LinkerScript.cpp
ELF/LinkerScript.h
ELF/OutputSections.cpp
ELF/OutputSections.h
ELF/Writer.cpp
test/ELF/linkerscript-sections-padding.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17269.47993.patch
Type: text/x-patch
Size: 8903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160215/2b684687/attachment.bin>
More information about the llvm-commits
mailing list