[PATCH] D11589: [lld][LinkerScript] Process program header of linker script

Denis Protivensky dprotivensky at accesssoftek.com
Wed Jul 29 05:10:03 PDT 2015


denis-protivensky created this revision.
denis-protivensky added a reviewer: Bigcheese.
denis-protivensky added a subscriber: llvm-commits.
denis-protivensky added a project: lld.

Add PT_PHDR segment depending on its availability in linker script's PHDRS command, fallback if no linker script is given.
Handle FILEHDR, PHDRS and FLAGS attributes of program header.
Test cases are included.

http://reviews.llvm.org/D11589

Files:
  include/lld/Core/Error.h
  include/lld/ReaderWriter/LinkerScript.h
  lib/Core/Error.cpp
  lib/Driver/GnuLdDriver.cpp
  lib/ReaderWriter/ELF/SegmentChunks.cpp
  lib/ReaderWriter/ELF/TargetLayout.cpp
  lib/ReaderWriter/LinkerScript.cpp
  test/elf/linkerscript/phdrs-extra-program.test
  test/elf/linkerscript/phdrs-has-program.test
  test/elf/linkerscript/phdrs-invalid.test
  test/elf/linkerscript/phdrs-misplaced-program.test
  test/elf/linkerscript/phdrs-no-program.test
  test/elf/linkerscript/phdrs-program-flags.test
  test/elf/linkerscript/phdrs-program-good-phdrs.test
  test/elf/linkerscript/phdrs-program-no-phdrs.test
  test/elf/linkerscript/phdrs-program-wrong-phdrs.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11589.30893.patch
Type: text/x-patch
Size: 21224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150729/e59d380f/attachment.bin>


More information about the llvm-commits mailing list