Rafael Espindola 83ed6b7814 Use the ability to pwrite to simplify the ELF writer.
Now we don't have to do 2 synchronized passes to compute offsets and then
write the file.

This also includes a fix for the corner case of seeking in /dev/null. It
is not an error, but on some systems (Linux) the returned offset is
always 0. An error is signaled by returning -1. This is checked by
the existing tests now that "clang -o /dev/null ..." seeks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234952 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-14 22:54:16 +00:00
..
2014-09-02 22:32:20 +00:00
2014-09-02 22:32:20 +00:00
2014-08-15 14:01:07 +00:00
2015-02-05 01:13:47 +00:00
2014-07-03 02:01:39 +00:00