Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 93a5a8decdeed21c17fba191d9be60b341f0562765389301a3cf6a5c53e6dfb2
Ticket: 718de2132f487cf29dfdd0be2b90fcc0107c2aa7
review use of strip on the stubs library
User & Date: gahr on 2023-04-13 14:19:33
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Over at FreeBSD, I got a bug report regarding Tcl (8.6) not building using the LLVM linker: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270768.
    
    TL;DR
    
    INSTALL_STRIP_LIBRARY uses strip -x (https://core.tcl-lang.org/tcl/file?ci=3a6e95a25219a787&name=unix/Makefile.in&ln=154), which means we want to strip all non-global symbols, but .L.str.1 is referenced by relocations:
    
    # readelf -r tclStubLib.o | grep .L.str.1
    000000000000004e  0000000300000002 R_X86_64_PC32          0000000000000031 .L.str.1 - 4
    00000000000000f3  0000000300000002 R_X86_64_PC32          0000000000000031 .L.str.1 - 4
    0000000000000153  0000000300000002 R_X86_64_PC32          0000000000000031 .L.str.1 - 4
    
    Is -x correct? Can we do without it?
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "gahr"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "438e59f1f1c891b29d2528ed82d1e629cecc6336"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "gahr"
  14. subsystem changed to: "53. Configuration and Build Tools"
  15. title changed to: "review use of strip on the stubs library"
  16. type changed to: "Bug"