Rafael Espindola a8a1a4fc30 Avoid empty .eh_frame sections.
Strip on OpenBSD does not correctly handle an empty .eh_frame section
and produces broken binaries in that case. Currently lld creates such
an empty .eh_frame section, despite the fact that the OpenBSD crtend.o
explicitly inserts a terminator. The Linux LSB "standard":

https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/ehframechpt.html#EHFRAME

explicitly says that

    The .eh_frame section shall contain 1 or more Call Frame Information (CFI) records.

This diff includes a test that specifically tests the issue I'm seeing
on OpenBSD.

Patch by Mark Kettenis!

llvm-svn: 301931
2017-05-02 15:45:31 +00:00
..
2016-01-13 13:04:46 +00:00
2017-05-02 15:45:31 +00:00
2016-06-28 21:48:33 +00:00
2016-06-07 09:31:52 +00:00
2016-02-25 18:43:51 +00:00
2017-01-13 21:05:46 +00:00
2017-01-13 21:05:46 +00:00
2017-01-13 21:05:46 +00:00
2016-03-31 12:09:36 +00:00
2016-04-04 16:02:39 +00:00
2016-11-05 22:58:01 +00:00
2016-03-11 14:34:44 +00:00
2016-12-03 15:26:18 +00:00
2016-04-08 20:49:31 +00:00
2016-04-08 20:49:31 +00:00
2016-07-25 16:51:52 +00:00
2016-11-23 05:14:01 +00:00
2016-01-07 17:20:07 +00:00
2017-02-13 16:21:34 +00:00
2017-02-13 16:21:34 +00:00