Patchelf: cannot normalize PT_NOTE segment: non-contiguous SHT_NOTE sections

I’m attempting to patchelf a rust executable to run on NixOS 23.11 and hitting the error from the subject:

$ patchelf --set-interpreter /nix/store/8mc30d49ghc8m5z96yz39srlhg5s9sjj-glibc-2.38-44/lib/ld-linux-x86-64.so.2 ./GlamorousToolkit-cli
patchelf: cannot normalize PT_NOTE segment: non-contiguous SHT_NOTE sections

$ patchelf --version
patchelf 0.18.0

The same error occurs with patchelf 0.15.0.

I’ve seen previous reports of this, but they were mostly using homebrew, while this executable was built on Ubuntu 20.04.

Before opening an issue in the patchelf project I just wanted to check that my search skills aren’t insufficient and there isn’t a known fix / workaround for this.

Thanks,
Alistair

Reported in patchelf: cannot normalize PT_NOTE segment: non-contiguous SHT_NOTE sections · Issue #546 · NixOS/patchelf · GitHub