Tests for #5435 (init/init_array/constr handling by linker)

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>