Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
elf: strip the .note.go.buildid to make room for patching elf #1798
Conversation
|
I'm confused about what will happen in the deb in xenial. Will we just warn, and the behaviour will be the same as if we had build the snap with snapcraft 2.35? |
|
With this change, gotty builds successfully. |
|
@elopio an integration test is in the works, I was just sharing this with you for you to verify. For the deb we will just add |
sergiusens
changed the title from
go plugin: strip sections that patchelf does not handle
to
elf: strip the .note.go.buildid to make room for patching elf
Dec 11, 2017
sergiusens
added some commits
Dec 8, 2017
elopio
reviewed
Dec 15, 2017
•
I'm happy if the test passes. This is properly commented, so not pretty but clear.
Should we depend on binutils now that we are using the strip command?
My biggest question is when do you want to release this to stable? I think it needs a lot of testing to build and run classic snaps, so I would prefer to do it on January when I'm back.
|
binutils is a base requirement on every distro, more so in Ubuntu, so I'd say no. I do wish to release it to stable as it would solve many vendors problems. We should at least move it to candidate. |
elopio
approved these changes
Dec 16, 2017
all green, let's give it more tries on edge.
sergiusens commentedDec 7, 2017
•
Edited 6 times
-
sergiusens
Dec 8, 2017
-
sergiusens
Dec 7, 2017
-
sergiusens
Dec 7, 2017
-
sergiusens
Dec 7, 2017
-
sergiusens
Dec 7, 2017
-
sergiusens
Dec 7, 2017
patchelf does not handle the existence of the .note.go.buildid section
so we strip it from the resulting binary as from the perspective of the
snap it is not needed.
A newer patchelf is also required which handles the math required for
the way the headers are layed out when using golang's go.
LP: #1736861
Signed-off-by: Ubuntu sergio.schvezov@canonical.com
./runtests.sh static?./runtests.sh unit?