1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
Simon Atanasyan 71d4f2d741 [mips] Switch to the .text section after emitting asm file preamble
Now the last `.section` directive in the MIPS asm file preamble
is the `.section .mdebug.abi`. If assembler code injected for example
by the LLVM `module asm` or the C ` __asm` directives do not contain
explicit switching to the `.text` section it goes to the `.mdebug.abi`
section. It might be unexpected to the user and in fact for example
breaks building some existing code like FreeBSD libc [1].

The patch forces switching to the `.text` section after emitting MIPS
assembler file preamble.

[1] https://bugs.llvm.org/show_bug.cgi?id=43119

Fix PR43119.

Differential Revision: https://reviews.llvm.org/D67014

llvm-svn: 370735
2019-09-03 10:24:07 +00:00
..
2019-08-30 05:51:12 +00:00
2018-06-29 16:37:16 +00:00
2018-07-23 23:19:53 +00:00
2019-01-28 14:59:30 +00:00
2017-12-11 11:21:40 +00:00
2017-06-06 15:33:01 +00:00
2017-12-11 11:21:40 +00:00
2017-03-09 11:19:48 +00:00
2017-03-09 11:19:48 +00:00