| ... | ... | @@ -1448,14 +1448,14 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void { |
| 1448 | 1448 | }; |
| 1449 | 1449 | try argv.append(try comp.get_libc_crt_file(arena, crt1o)); |
| 1450 | 1450 | if (target_util.libc_needs_crti_crtn(target)) { |
| 1451 | | const crtio: []const u8 = o: { |
| 1451 | const crti_o = o: { |
| 1452 | 1452 | if (target.os.tag == .openbsd) { |
| 1453 | 1453 | break :o "crtbegin.o"; |
| 1454 | 1454 | } else { |
| 1455 | 1455 | break :o "crti.o"; |
| 1456 | 1456 | } |
| 1457 | 1457 | }; |
| 1458 | | try argv.append(try comp.get_libc_crt_file(arena, crtio)); |
| 1458 | try argv.append(try comp.get_libc_crt_file(arena, crti_o)); |
| 1459 | 1459 | } |
| 1460 | 1460 | } |
| 1461 | 1461 | |
| ... | ... | @@ -1599,8 +1599,8 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void { |
| 1599 | 1599 | |
| 1600 | 1600 | // crt end |
| 1601 | 1601 | if (link_in_crt) { |
| 1602 | | if (target_util.libc_needs_crti_crtn(target)) { |
| 1603 | | const crtno: []const u8 = o: { |
| 1602 | if (target.isAndroid() or target_util.libc_needs_crti_crtn(target)) { |
| 1603 | const crtn_o = o: { |
| 1604 | 1604 | if (target.os.tag == .openbsd) { |
| 1605 | 1605 | break :o "crtend.o"; |
| 1606 | 1606 | } else if (target.isAndroid()) { |
| ... | ... | @@ -1609,7 +1609,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void { |
| 1609 | 1609 | break :o "crtn.o"; |
| 1610 | 1610 | } |
| 1611 | 1611 | }; |
| 1612 | | try argv.append(try comp.get_libc_crt_file(arena, crtno)); |
| 1612 | try argv.append(try comp.get_libc_crt_file(arena, crtn_o)); |
| 1613 | 1613 | } |
| 1614 | 1614 | } |
| 1615 | 1615 | |