History log of /external/llvm/lib/Object/COFFObjectFile.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
de2d8694e25a814696358e95141f4b1aa4d8847e 20-Sep-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r275480

Bug: http://b/31320715

This merges commit 7dcf7f03e005379ef2f06db96aa93f06186b66d5 from
aosp/dev.

Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)

Change-Id: Iaf3738f74312d875e69f61d604ac058f381a2a1a
/external/llvm/lib/Object/COFFObjectFile.cpp
f3ef5332fa3f4d5ec72c178a2b19dac363a19383 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r256229

http://b/26987366

Change-Id: I1f29c4676a8abe633ab5707dded58d846c973d50
/external/llvm/lib/Object/COFFObjectFile.cpp
6948897e478cbd66626159776a8017b3c18579b9 01-Jul-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r239765

Bug: 20140355: This rebase pulls the upstream fix for the spurious
warnings mentioned in the bug.

Change-Id: I7fd24253c50f4d48d900875dcf43ce3f1721a3da
/external/llvm/lib/Object/COFFObjectFile.cpp
0c7f116bb6950ef819323d855415b2f2b0aad987 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r235153

Change-Id: I9bf53792f9fc30570e81a8d80d296c681d005ea7
/external/llvm/lib/Object/COFFObjectFile.cpp
4c5e43da7792f75567b693105cc53e3f1992ad98 08-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master llvm for rebase to r233350

Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
/external/llvm/lib/Object/COFFObjectFile.cpp
ebe69fe11e48d322045d5949c83283927a0d790b 23-Mar-2015 Stephen Hines <srhines@google.com> Update aosp/master LLVM for rebase to r230699.

Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
/external/llvm/lib/Object/COFFObjectFile.cpp
37ed9c199ca639565f6ce88105f9e39e898d82d0 01-Dec-2014 Stephen Hines <srhines@google.com> Update aosp/master LLVM for rebase to r222494.

Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
/external/llvm/lib/Object/COFFObjectFile.cpp
c6a4f5e819217e1e12c458aed8e7b122e23a3a58 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/lib/Object/COFFObjectFile.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/lib/Object/COFFObjectFile.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/lib/Object/COFFObjectFile.cpp
ce9904c6ea8fd669978a8eefb854b330eb9828ff 12-Feb-2014 Stephen Hines <srhines@google.com> Merge remote-tracking branch 'upstream/release_34' into merge-20140211

Conflicts:
lib/Linker/LinkModules.cpp
lib/Support/Unix/Signals.inc

Change-Id: Ia54f291fa5dc828052d2412736e8495c1282aa64
3a226015a0ca52936763a079da582656164c2908 15-Nov-2013 Rui Ueyama <ruiu@google.com> Readobj: If NumbersOfSections is 0xffff, it's an COFF import library.

0xffff does not mean that there are 65535 sections in a COFF file but
indicates that it's a COFF import library. This patch fixes SEGV error
when an import library file is passed to llvm-readobj.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194844 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
bc884fd9f7bdb64d250be639edc8dc85a20a1975 02-Nov-2013 Rafael Espindola <rafael.espindola@gmail.com> move getSymbolNMTypeChar to the one program that needs it: nm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
66b8ec520f84c704e2a7f89dfa9ee1452ef5bc43 02-Nov-2013 Rafael Espindola <rafael.espindola@gmail.com> Convert another use of getSymbolNMTypeChar.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
1b6c8d1f6c834d8c3de4f78a4c99f8800f581b73 02-Nov-2013 Rafael Espindola <rafael.espindola@gmail.com> Avoid some getSymbolNMTypeChar uses in COFFObjectFile.cpp itself.

This is a fixed version of 193928 which keeps these uses in sync.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
7e56fc6ae19e353ebdfaf327b46121b519a0c264 02-Nov-2013 Rafael Espindola <rafael.espindola@gmail.com> Revert "Don't use getSymbolNMTypeChar for implementing COFFObjectFile::getSymbolFileOffset."

Investigating a bot failure.

This reverts commit r193928.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193929 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
30c8dc8c8210ac7b043f4f038858a2bfa1d0b151 02-Nov-2013 Rafael Espindola <rafael.espindola@gmail.com> Don't use getSymbolNMTypeChar for implementing COFFObjectFile::getSymbolFileOffset.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193928 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
e3ba15c794839abe076e3e2bdf6c626396a19d4d 12-Oct-2013 Will Dietz <wdietz2@illinois.edu> Add missing #include's to cctype when using isdigit/alpha/etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192519 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
29552222c2e7cbeb37fcd15d247597467f7b8544 27-Sep-2013 Rui Ueyama <ruiu@google.com> Object/COFF: Rename getXXX{Begin,End} -> xxx_{begin,end}.

It is mentioned in the LLVM coding standard that _begin() and _end() suffixes
should be used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191569 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
a6610ee882fcb8bcad60d53fc52b80f00a3fddae 27-Sep-2013 Rui Ueyama <ruiu@google.com> Re-submit r191472 with a fix for big endian.

llvm-objdump: Dump COFF import table if -private-headers option is given.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191557 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
4715a11dcfe79de2a7a8b0b633d6ca272eea0bc3 27-Sep-2013 Rui Ueyama <ruiu@google.com> Revert "llvm-objdump: Dump COFF import table if -private-headers option is given."

This reverts commit r191472 because it's failing on BE machine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191480 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
0c873adc82a81b0bce317c3e2cb3139e990a0f9e 27-Sep-2013 Rui Ueyama <ruiu@google.com> llvm-objdump: Dump COFF import table if -private-headers option is given.

This is a patch to add capability to llvm-objdump to dump COFF Import Table
entries, so that we can write tests for LLD checking Import Table contents.

llvm-objdump did not print anything but just file name if the format is COFF
and -private-headers option is given. This is a patch adds capability for
dumping DLL Import Table, which is specific to the COFF format.

In this patch I defined a new iterator to iterate over import table entries.
Also added a few functions to COFFObjectFile.cpp to access fields of the entry.

Differential Revision: http://llvm-reviews.chandlerc.com/D1719

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191472 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
fab2daa4a1127ecb217abe2b07c1769122b6fee1 08-Aug-2013 Stephen Hines <srhines@google.com> Merge commit '10251753b6897adcd22cc981c0cc42f348c109de' into merge-20130807

Conflicts:
lib/Archive/ArchiveReader.cpp
lib/Support/Unix/PathV2.inc

Change-Id: I29d8c1e321a4a380b6013f00bac6a8e4b593cc4e
2f6c0484d68270f09eecac03b7e56053153203f3 20-Jul-2013 Rui Ueyama <ruiu@google.com> Retry submitting r186623: COFFDumper: Dump data directory entries.

The original change was rolled back in r186627 because of test
failures on the big endian machine. I believe I fixed the issue
so re-submitting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186734 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
9d1359453fc5db2ff9fb334fe205a14c30ed244d 19-Jul-2013 Rui Ueyama <ruiu@google.com> Revert "COFFDumper: Dump data directory entries."

Because it broke s390x and ppc64-linux buildbots. This reverts commit r186623.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
06bd2061fc40bfa3560bc200c396595cc4ed3a2e 19-Jul-2013 Rui Ueyama <ruiu@google.com> COFFDumper: Dump data directory entries.

Summary:
Dump optional data directory entries in the PE/COFF header, so that
we can test the output of LLD linker. This patch updates the test binary
file, but the source of the binary is the same. I just re-linked the file.
I don't know how the previous file was linked, but the previous file did
not have any data directory entries for some reason.

Reviewers: rafael

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1148

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186623 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
1878f9a7874b1ff569d745c0269f49d3daf7203d 12-Jun-2013 Stephen Hines <srhines@google.com> Merge commit '100fbdd06be7590b23c4707a98cd605bdb519498' into merge_20130612
4bf771b4e6d37ae1d6ae08ea27c4070a3a09784d 12-Jun-2013 Rui Ueyama <ruiu@google.com> readobj: Dump PE/COFF optional records.

These records are mandatory for executables and are used by the loader.

Reviewers: rafael

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D939

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183852 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
6c1202c459ffa6d693ad92fa84e43902bc780bca 05-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Handle relocations that don't point to symbols.

In ELF (as in MachO), not all relocations point to symbols. Represent this
properly by using a symbol_iterator instead of a SymbolRef. Update llvm-readobj
ELF's dumper to handle relocatios without symbols.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183284 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
167957fa095bc7200b908e6e142be3e604bcfeea 09-May-2013 Rafael Espindola <rafael.espindola@gmail.com> Change getRelocationAdditionalInfo to be ELF only.

It was only implemented for ELF where it collected the Addend, so this
patch also renames it to getRelocationAddend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181502 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
38578c4919ea18ceb27e29988b2d857afe6215bf 03-May-2013 Stephen Hines <srhines@google.com> Merge remote-tracking branch 'upstream/master' into merge-20130502

Conflicts:
lib/Support/Unix/Signals.inc
unittests/Transforms/Utils/Cloning.cpp

Change-Id: I027581a4390ec3ce4cd8d33da8b5f4c0c7d372c8
956ca7265c697107708468b7e1b2fd21f4185bae 25-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com> Clarify getRelocationAddress x getRelocationOffset a bit.

getRelocationAddress is for dynamic libraries and executables,
getRelocationOffset for relocatable objects.

Mark the getRelocationAddress of COFF and MachO as not implemented yet. Add a
test of ELF's. llvm-readobj -r now prints the same values as readelf -r.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
2c6f997290f589b80da903e33718175666557dd7 07-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com> Remove unused argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178987 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
5adb136be579e8fff3734461580cb34d1d2983b8 06-Mar-2013 Stephen Hines <srhines@google.com> Merge commit 'b3201c5cf1e183d840f7c99ff779d57f1549d8e5' into merge_20130226

Conflicts:
include/llvm/Support/ELF.h
lib/Support/DeltaAlgorithm.cpp

Change-Id: I24a4fbce62eb39d924efee3c687b55e1e17b30cd
87d0b9ed1462705dd9bf1cb7f67d0bf03af776c8 12-Feb-2013 Guy Benyei <guy.benyei@intel.com> Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
059800f9e3fee2852672f846d91a2da14da7783a 21-Jan-2013 Stephen Hines <srhines@google.com> Merge remote-tracking branch 'upstream/master' into merge-llvm

Conflicts:
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
lib/MC/MCAssembler.cpp
lib/Support/Atomic.cpp
lib/Support/Memory.cpp
lib/Target/ARM/ARMJITInfo.cpp

Change-Id: Ib339baf88df5b04870c8df1bedcfe1f877ccab8d
a41dce3c642e50775352cce49e3a3d0cd004d393 29-Oct-2012 Tim Northover <Tim.Northover@arm.com> Add interface for querying object files for symbol values.

Currently only implemented for ELF.

Patch by Amara Emerson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
30b20ebdd3a41e103c6aa35849a33ed299332bc9 10-Oct-2012 Andrew Kaylor <andrew.kaylor@intel.com> Cosmetic changes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165588 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
3a129c85920404e7ccdb7e655c89fa60a0309cfd 10-Oct-2012 Andrew Kaylor <andrew.kaylor@intel.com> This patch adds new functions to the SectionRef and ObjectFile interfaces to determine whether or not a section is meant to be read-only. These functions will be used by the MCJIT RuntimeDyld to give hints to the memory manager during the object loading process in a future patch.

Patch by Ashok Thirumurthi.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165586 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
7744acd1ab73b3eec6f1449f47083abe3fb1b527 03-Aug-2012 Shih-wei Liao <sliao@google.com> Merge with LLVM upstream r160668 (Jul 24th 2012)

Conflicts:
include/llvm/Support/ELF.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Support/Memory.cpp
lib/Transforms/Instrumentation/AddressSanitizer.cpp

Change-Id: Iddd658cf2eadc7165b2805b446d31af2c5c9917f
9ac0f1d7255d7941c331b0a62a830a3b033358fd 18-Jun-2012 Marshall Clow <mclow@qualcomm.com> Added accessors for getting coff_relocation info

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158675 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
45aad162c68ee58ba1aa8984499064f6b9c8d0f9 15-Jun-2012 Marshall Clow <mclow@qualcomm.com> Had a closing brace inside an #ifdef -- oops!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158485 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
d4d03e09d3686d317da1166b578ca5ca35593970 15-Jun-2012 Marshall Clow <mclow@qualcomm.com> Adding acessors to COFFObjectFile so that clients can get at the (non-generic) bits

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158484 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
7c101d874ef1ef2053c6f61d87680006fdd1a32d 07-May-2012 Andrew Hsieh <andrewhsieh@google.com> Merge "Add libLLVMObject to read executable file."
ca8b2c655eb4d283187cbbb4f0f3acd34f60fa1c 20-Apr-2012 Logan Chien <loganchien@google.com> Add libLLVMObject to read executable file.

Change-Id: I9ce8742d12fd3d9c57cec182e76c7385d3f0e3bc
/external/llvm/lib/Object/COFFObjectFile.cpp
c68dda815e64fb2fb463318d1eaa304e22199d50 12-Apr-2012 Preston Gurd <preston.gurd@intel.com> This patch improves the MCJIT runtime dynamic loader by adding new handling
of zero-initialized sections, virtual sections and common symbols
and preventing the loading of sections which are not required for
execution such as debug information.

Patch by Andy Kaylor!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154610 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
3fd9b8422328a60664a5c631ec9519b58017fcbc 10-Apr-2012 Danil Malyshev <dmalyshev@accesssoftek.com> Add a constructor for DataRefImpl and remove excess initialization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154371 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
1f6e3f9544c93213111a2f8b314c926c0d0e30e5 19-Mar-2012 Michael J. Spencer <bigcheesegs@gmail.com> [Object/COFF]: Expose getSectionContents.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153051 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
b35a896e072ff46c38905419b7f55aaccdb1d702 19-Mar-2012 Michael J. Spencer <bigcheesegs@gmail.com> [Object/COFF]: Expose getSectionName.
Also add some documentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
33a1805f352acf00662b8e3f8ef178bf2cbbd919 15-Mar-2012 Michael J. Spencer <bigcheesegs@gmail.com> Fix bug found by warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152812 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
6f9489a86f33624f9ff5388411d12359ce9cef20 09-Mar-2012 David Meyer <pdox@google.com> [Object]
Make Binary::TypeID more granular, to distinguish between ELF 32/64 little/big




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152435 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
97f7787bfb56ad31fe20ec0bb9c3c9f3253d14fb 01-Mar-2012 David Meyer <pdox@google.com> [Object]
Add ObjectFile::getLoadName() for retrieving the soname/installname of a shared object.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151845 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
5c2b4ea73c8f48bb5f96c86fe437385b8fb3dcda 01-Mar-2012 David Meyer <pdox@google.com> [Object]
* Add begin_dynamic_table() / end_dynamic_table() private interface to ELFObjectFile.
* Add begin_libraries_needed() / end_libraries_needed() interface to ObjectFile, for grabbing the list of needed libraries for a shared object or dynamic executable.
* Implement this new interface completely for ELF, leave stubs for COFF and MachO.
* Add 'llvm-readobj' tool for dumping ObjectFile information.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151785 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
2c67727046234ad9702ab5acb72700b5ac99a676 29-Feb-2012 David Meyer <pdox@google.com> [Object] Add symbol attribute flags: ST_ThreadLocal, ST_Common, and ST_Undefined. Implement these completely for ELF.
Rename ST_External to ST_Unknown, and slightly change its semantics. It now only indicates that the symbol's type
is unknown, not that the symbol is undefined. (For that, use ST_Undefined).



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
c46255a32ec92c427e621b6d7eabd887962ce4a4 29-Feb-2012 David Meyer <pdox@google.com> In the ObjectFile interface, replace isInternal(), isAbsolute(), isGlobal(), and isWeak(), with a bitset of flags.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151670 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
dfa1896b6b61e708f002b814794890ff308172ee 28-Feb-2012 Michael J. Spencer <bigcheesegs@gmail.com> [Object] Add {begin,end}_dynamic_symbols stubs and implementation for ELF.
Add -D option to llvm-nm to dump dynamic symbols.

Patch by David Meyer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151600 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
b0436a73054fe676b216a0cf872d1fc433125c62 29-Nov-2011 Danil Malyshev <dmalyshev@accesssoftek.com> Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
a483fc8e6f9533317f517f2d03f3a41ec0aee663 28-Nov-2011 Daniel Dunbar <daniel@zuster.org> Fix some possible gcc-4.2 may be used uninitialized warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145292 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
790552c20fbd8daa77d343419f0f6ec4e7fa1457 27-Nov-2011 Chandler Carruth <chandlerc@gmail.com> Revert r145180 as it is causing test failures on all the bots.

Original commit message:
Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145182 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
9b24738bd1dc791eb2c21b5562fcfe4b7b99fe2a 27-Nov-2011 Danil Malyshev <dmalyshev@accesssoftek.com> Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
11ba26db13698a4567730be13a154c5690ef5e75 17-Nov-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object/COFF: Support common symbols.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144861 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
7151ddd6efb2f3f51297b35f27a30ddfa8a76a7e 09-Nov-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object/COFF: Fix PE reading.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144148 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
783d88793afe4b4e42460c139ab742fbd26f39f7 02-Nov-2011 Michael J. Spencer <bigcheesegs@gmail.com> object/COFF: Properly initalize uses of DataRefImpl.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143562 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
9472b8d220fc746498429f430cb4c4dbfbd38f2a 26-Oct-2011 Owen Anderson <resistor@mac.com> Expand relocation type field to 64 bits. MachO scattered relocations require 33 bits of type info.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143032 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
7c24665390a79ee05a0a562ff689e52d4135063e 18-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object/COFF: Remove useless test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
5e3a082c797f0214d44858b05a13543872dfd413 18-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object/COFF: Change type from a struct to a uint16_t. The struct would be
incorrect for bigendian systems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142403 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
9b2b812fea4df160437e7b7d56e38f6335189ad0 18-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object: Add isSymbolAbsolute and getSymbolSection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
c38c36a8c44bd32bdfc2e48ab3e447f6dc1547bd 18-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object: Add isSymbolWeak.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142316 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
0e752cb4b4eb5676aace4d9f3d7c2e2334c13777 18-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object/COFF: Expose more data in the public API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
1130a799ab2fd7042625163a2506518960394884 17-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object: Fix redundant name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142238 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
bff6f8679a3e4006653157ca11cee9dc58c68f8b 13-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> COFF: Implement sectionContainsSymbol for relocatable files only.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141884 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
e2f2f07be7cf2b55b7e5501291bbcede87e43fd6 10-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object: add getSectionAlignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
48f248ad5f9e435f3aeaa3aa9bca890687085540 08-Oct-2011 NAKAMURA Takumi <geek4civic@gmail.com> lib/Object: Suppress warnings on gcc-4.3.4 cygwin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141485 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
4344b1ef9b3721a5ebc2e024f753772a1e4ddd92 07-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Change relocation API to be per section. This time without breaking GCC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141385 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
a48ad1333999e2fb483d23096349138af5a51ec6 07-Oct-2011 Bill Wendling <isanbard@gmail.com> Revert 141376 and 141377 due to breaking the build.

--- Reverse-merging r141377 into '.':
U tools/llvm-objdump/MachODump.cpp
--- Reverse-merging r141376 into '.':
U include/llvm/Object/COFF.h
U include/llvm/Object/ObjectFile.h
U include/llvm-c/Object.h
U tools/llvm-objdump/llvm-objdump.cpp
U lib/Object/MachOObjectFile.cpp
U lib/Object/COFFObjectFile.cpp
U lib/Object/Object.cpp
U lib/Object/ELFObjectFile.cpp



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
f1164a2487750f891694fc2e3347860e50f705fb 07-Oct-2011 Michael J. Spencer <bigcheesegs@gmail.com> Change relocation API to be per section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141376 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
13afc5eff2d7370ab486d5039886ab8bbf9039da 28-Sep-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object: Add isSection{Data,BSS}.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140721 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
ac241fe9f0d73c6f632e4f7f89e06b698d39da54 14-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> Object: make the following changes into SymbolRef

- Add enum SymbolType and function getSymbolType()
- Add function isGlobal() - it's returns true for symbols that can be used in another objects, such as library functions.
- Rename function getAddress() to getOffset() and add new function getAddress(), because currently getAddress() returns section offset of symbol first byte. new getAddress() return symbol address.
- Change usage SymbolRef::getAddress() to getOffset() in tools/llvm-nm and tools/llvm-objdump.

Patch by Danil Malyshev!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139683 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
cee58a69fa3f0f291c0c88ce0d29099a95495ae7 13-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> Silence false positive uninitialized variable warnings from GCC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139573 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
0fcab076f0358890e2f1b213f4303c780e05d99d 08-Sep-2011 Benjamin Kramer <benny.kra@googlemail.com> Add support for relocations to ObjectFile.

Patch by Danil Malyshev!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139314 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
07ea23aa2d17f701fa125442c20c1eba75b55fdb 15-Jul-2011 Benjamin Kramer <benny.kra@googlemail.com> ObjectFile: Add a method to check whether a section contains a symbol.

- No ELF or COFF implementation yet, I don't have a way to test that.
Should be straightforward to add though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135288 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
3209a03dafe1a23fe74c933cebd9f9c92a2a3616 05-Jul-2011 Benjamin Kramer <benny.kra@googlemail.com> Use memcmp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134439 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
9b9c5ea2c396806fc85c3502cf0205b4e03c2233 05-Jul-2011 Rafael Espindola <rafael.espindola@gmail.com> Really fix typo :-(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134436 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
5ac795c56f27735085be5500a1b43f09ceb2bfc9 05-Jul-2011 Rafael Espindola <rafael.espindola@gmail.com> Fix typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
82c475d0579e2d7519bdf75b3efa44f6b9759c21 05-Jul-2011 Rafael Espindola <rafael.espindola@gmail.com> Compare all 4 bytes of the header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134427 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
64388ceee00d5e8fc8750ce7967c07a83af3a5a8 05-Jul-2011 Michael J. Spencer <bigcheesegs@gmail.com> Fix warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
25b15777df42d5d608810f6881b6c98107481d69 25-Jun-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object: Add proper error handling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
001c9205fca2220480589ec355cb6ec701a37e08 25-Jun-2011 Michael J. Spencer <bigcheesegs@gmail.com> Make Binary the parent of ObjectFile and update children to new interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133870 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
5e45dc40d329829ad23bf444f32dca221215e239 13-Jun-2011 Michael J. Spencer <bigcheesegs@gmail.com> Revert the last two commits in the series. r132911, r132912.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132913 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
69aec36f9b3129ba6eb83d64cde31c3d86d6d39a 13-Jun-2011 Michael J. Spencer <bigcheesegs@gmail.com> Make Binary the parent of ObjectFile and update children to new interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132911 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
71f234ba6a2e37ee6d56aa7ed8f09105fd0517f9 02-May-2011 Nick Lewycky <nicholas@mxc.ca> Remove dead variable pointed out by GCC 4.6 warnings, and reflow this a little
to scope a variable more tightly per llvm coding style. No functional change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130684 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
539d8d8a72995d08afe7b986fe98a1dc7fec4b0a 04-Apr-2011 Eric Christopher <echristo@apple.com> Assorted bugfixes in object file handling:

- Adds support for sniffing PE/COFF files on win32 (.exe and .dll)
which are COFF files that have an MS-DOS compatibility stub on
the front of them.

- Fixes a bug in the COFFObjectFile's support for the Microsoft COFF
extension for long symbol names, wherein it was attempting to parse
the leading '/' in an extended symbol name reference as part of the
integer offset.

- Fixes bugs in COFFObjectFile and ELFObjectFile wherein section
and symbol iterators were being returned with uninitialized bytes;
the type DataRefImpl is a union between 2 32-bit words (d.a and d.b)
and a single intptr_t word (p). Only p was being initialized, so in
32-bit builds the result would be iterators with random upper 32-bit
words in their DataRefImpls. This caused random failures when
seeking around in object files.

Patch by Graydon Hoare!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128799 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
7acdb4d237181976b04e72f6a6c329c3b2604440 21-Jan-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object: Fix type punned pointer issues by making DataRefImpl a union and using intptr_t.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123962 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp
a1ef8ef66075e28e020e5d2f408e0a9bae9eb9d3 20-Jan-2011 Michael J. Spencer <bigcheesegs@gmail.com> Object: Add COFF Support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123895 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Object/COFFObjectFile.cpp