2016-04-30 09:15:17 +08:00
/ / REQUIRES : x8 6
2016-02-23 05:23:29 +08:00
/ / RUN : llvm- m c - f i l e t y p e =obj - t r i p l e =x86_64 - p c - l i n u x % p / I n p u t s / c o p y - i n - s h a r e d . s - o % t 1 . o
/ / RUN : ld. l l d - s h a r e d % t 1 . o - o % t 1 . s o
/ / RUN : llvm- m c - f i l e t y p e =obj - t r i p l e =x86_64 - p c - l i n u x % s - o % t 2 . o
2018-07-03 01:48:23 +08:00
/ / RUN : not l d . l l d % t 2 . o % t 1 . s o - o / d e v / n u l l - s h a r e d 2 > & 1 | F i l e C h e c k % s
2016-04-30 09:15:17 +08:00
2018-03-15 06:05:12 +08:00
/ / CHECK : can' t c r e a t e d y n a m i c r e l o c a t i o n R _ X 8 6 _ 6 4 _ 6 4 a g a i n s t s y m b o l : f o o i n r e a d o n l y s e g m e n t ; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
2017-04-04 05:36:31 +08:00
/ / CHECK : > > > defined i n { { . * } } . s o
/ / CHECK : > > > referenced b y { { . * } } . o : ( . t e x t + 0 x0 )
2016-02-23 05:23:29 +08:00
.quad foo