AppImage / AppImage/AppImageKit

Use gcc feature __attribute__ section to create the custom sections on the runtime

Abierto
#947 2 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Sin datos de lenguaje
Estrellas
9.4k
Forks
588
Métricas de merge de PR
Métricas de PR pendientes

Descripción

While looking for a solution for https://github.com/AppImage/libappimage/issues/21 I found this nice gcc feature that will save us a lot of "fragile" cmake code at https://github.com/AppImage/AppImageKit/blob/master/src/build-runtime.cmake

Basically to create a 10 bites long section named `foo` we would use the code below
`char custom_section[10] __attribute__((section("foo"))) = {0x0};`

Documentation can be found here http://www.keil.com/support/man/docs/armcc/armcc_chr1359124982450.htm

Here is an example of how it's used to append metadata to the linux kernel modules:
https://www.bottomupcs.com/elf-sections-others.xhtml#modinfo_sections

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.