On Tue, Sep 05, 2017 at 12:37:01PM -0300, Eriberto wrote: >> blhc doesn't check for bindnow (and PIE) per default unless you >> use the --bindnow (or --all) option. I get the same output for >> the following commands (which report the missing -Wl,-z,now): >> >> blhc --bindnow nload_0.7.4-2_amd64.build >> blhc --bindnow --debian nload_0.7.4-2_amd64.build > > Hum... I can't see anything. These commands report nothing for me.
Now I'm really confused. Which version of blhc are you using? Here's again what I did and the output I get (running in the blhc repository): $ git describe 0.07-10-ga232d32 $ shasum bin/blhc 9abe92519031dbf88ebde59f53b4b7eb8943f1e0 bin/blhc $ shasum nload_0.7.4-2_amd64.build 866d39fa12769a6c4f694aac890b893b4c9cfce7 nload_0.7.4-2_amd64.build $ ./bin/blhc --bindnow nload_0.7.4-2_amd64.build LDFLAGS missing (-Wl,-z,now): g++ -g -O2 -fdebug-prefix-map=/PKGS/nload/nload-0.7.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z,relro -s -o nload device.o devreader.o devreaderfactory.o form_field.o graph.o main.o opt_window.o screen.o setting.o settingfilter.o settingstore.o statistics.o stringutils.o traffic_window.o window.o devreader-linux.o devreader-linux-proc.o devreader-linux-sys.o -lform -lncurses $ ./bin/blhc --bindnow --debian nload_0.7.4-2_amd64.build LDFLAGS missing (-Wl,-z,now): g++ -g -O2 -fdebug-prefix-map=/PKGS/nload/nload-0.7.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z,relro -s -o nload device.o devreader.o devreaderfactory.o form_field.o graph.o main.o opt_window.o screen.o setting.o settingfilter.o settingstore.o statistics.o stringutils.o traffic_window.o window.o devreader-linux.o devreader-linux-proc.o devreader-linux-sys.o -lform -lncurses >> However with the --all option you are required to also specify >> the --arch option to ignore "missing" PIE flags (or use a build >> log which reports the architecture) as PIE is only injected by >> gcc on certain architectures: >> >> blhc --arch=amd64 --all --debian nload_0.7.4-2_amd64.build > > Can you add these information to manpage and add a new example? Added in [1]. Suggestions (as patches) welcome. Regards Simon [1] https://ruderich.org/simon/gitweb/?p=blhc/blhc.git;a=commitdiff;h=8f13ff5cfeb4cd6f4102cd0448a9f5dfa089491e -- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9
signature.asc
Description: PGP signature