1. 16 Jan, 2023 3 commits
  2. 01 Jan, 2023 2 commits
  3. 28 Dec, 2022 2 commits
  4. 27 Dec, 2022 4 commits
  5. 26 Dec, 2022 1 commit
  6. 24 Dec, 2022 1 commit
  7. 23 Dec, 2022 2 commits
  8. 22 Dec, 2022 2 commits
  9. 20 Dec, 2022 2 commits
    • herman ten brugge's avatar
      Add tcc -ar x and t options · 909d58dd
      herman ten brugge authored
      On macos we cannot use the ar because is does not support elf files
      and then does not generate a symbol table.
      The solution is to use 'tcc -ar'. The problem now is that some
      pacages first built an archive with 'tcc -ar c' and later extracts
      the archive with 'tcc -ar x' and built with this a dylib file.
      The 'tcc -ar x' failed. So I implemented it. I also added the t
      option because it was simple to do,
      909d58dd
    • herman ten brugge's avatar
      Add macos clang/ld compiler options · d5f25d19
      herman ten brugge authored
      With these option I can now built several packages without problem.
      There are a lot of options we can add so I tried to implement the
      minumum.
      
      Add the following options:
      dynamiclib		same as -shared
      flat_namespace		default/ignored
      two_levelnamespace	ignored
      undefined		default/ignored
      install_name		name of dynmic lib
      compatibility_version	version dynamic lib
      current_version	version version dynamic lib
      
      -Wl options:
      all_load		same as whole-archive
      force_load		same as whole-archive with lib
      single_module		ignored
      d5f25d19
  10. 18 Dec, 2022 1 commit
    • herman ten brugge's avatar
      Fix dll support for macho · f6f3d646
      herman ten brugge authored
      Export now all global symbols in export trie instead of only text
      symbols.
      
      I wrote too much data into dylib file because I did not check
      for sk_unknown/sk_discard/sk_uw_info.
      
      Simplified code in tccrun.c
      f6f3d646
  11. 17 Dec, 2022 2 commits
    • herman ten brugge's avatar
      Allow building lib with gcc/clang · 04810db8
      herman ten brugge authored
      Needed when using ...libtcc1-usegcc=yes in lib/Makefile.
      
      lib/bcheck.c: Add __clang__ for pragma diagnostic
      lib/bt-log.c: Add pragma diagnostic as in lib/bcheck.c
      lib/builtin.c: Add a lot of alias code to allow building with gcc/clang
      lib/stdatomic.c: Same as lib/builtin.c
      lib/tcov.c: Avoid clang compiler warning
      04810db8
    • herman ten brugge's avatar
      Fix dll support macho for x86_64 · d66a62fa
      herman ten brugge authored
      Macho uses bind/rebase instead of dynsym so disable them for relocate_sections.
      d66a62fa
  12. 16 Dec, 2022 1 commit
    • herman ten brugge's avatar
      Add dll support for macho · 8d3930bd
      herman ten brugge authored
      Update configure and remove dll=no for Darwin.
      Also removed dwarf=$dwarf because this is not a config option.
      
      In tccelf.c only add __PAGEZERO if stabs and executable.
      
      In tccrun.c correct rt_printline_dwarf code for dll.
      
      In tests/Makefile disable dlltest with PIC for Darwin because object
      format of .o file is still in elf.
      
      In tccmacho.c add dll support and and rpath support.
      Corrected trie code. For some reason symbol 'xx' should be after 'xx1'.
      Corrected weak symbol support for old macho code.
      Used R_JMP_SLOT instead of R_DATA_PTR in check_relocs.
      8d3930bd
  13. 13 Dec, 2022 1 commit
  14. 11 Dec, 2022 2 commits
  15. 10 Dec, 2022 1 commit
  16. 06 Dec, 2022 2 commits
  17. 05 Dec, 2022 4 commits
  18. 04 Dec, 2022 3 commits
    • herman ten brugge's avatar
      Fix libtcc_test_mt · 85b27432
      herman ten brugge authored
      The test failed because atexit/on_exit code was not correct.
      Make it look more like the g_exit_context.
      Added a sleep to libtcc_test_mt to allow overlap of threads to
      detect this problem.
      85b27432
    • herman ten brugge's avatar
      Update load segment code for macho · e2db3a5e
      herman ten brugge authored
      Add an array with segement to load instead of code.
      Dynamically check if segment is used or not.
      This fixes the strange __DWARF code segment handling.
      e2db3a5e
    • herman ten brugge's avatar
      Fix for lldb usage · 7cc1cc38
      herman ten brugge authored
      lldb does not like function end and next function start at same pc
      7cc1cc38
  19. 03 Dec, 2022 1 commit
  20. 02 Dec, 2022 3 commits