Guidance on supporting static libraries
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Área
- build-system, compilers
Línea de trabajo
No files, tests, or entry points are named. Start by reading the existing package-note handling for ELF binaries, shared libraries, and dlopen stanzas, then investigate how static archives and LTO affect metadata propagation. Done requires a resolved design for static-library support and the package-note schema, with concrete validation criteria.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
many language ecosystems have great support for documenting and tracing static library linking.
For example in go go version -m /path/to/dir/or/binary prints all go packages that were statically linked.
Similarly when rust binaries are built using cargo-auditable, they can report all the crates they were built with.
I am only just exploring package notes, and it works really well for ELF binaries and shared libraries, and the dlopen stanzas.
I really really want this to work for statically linked libraries too, and for it to work with lto.
Static libraries is just an archive of object files. Thus one cannot really attach the package note to it. One can append an object into the library that just have the package note. And I hope that will be still propagate to a statically linked binary. Alternative to just a single object with a package note.... maybe we should be attaching package note to every .o object, and then deduplicating that information at link time? Or something else?
More fun stuff, making static .a library can be replaced by a linker script that specifies the package.note flags and the underlying static library? :-)
Also not sure about the package note spec. For example, if we need to extend the schema; allow multiple sections; or simply rely on the fact that json allows streams of objects one after another.
Because I really want to expose the information w.r.t. statically linked libraries/packages in the binaries.
- Lenguaje dominante
- Python
- Estrellas
- 28
- Forks
- 15
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de systemd/package-notes
-
Consider adding PURL Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
systemd/package-notes#51 · 6 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
systemd/package-notes#45 · 1 comentario ·
Todos los issues de systemd/package-notes
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100