{"id":20,"date":"2013-01-10T15:14:06","date_gmt":"2013-01-10T02:14:06","guid":{"rendered":"http:\/\/micro.muppetz.com\/blog\/?p=20"},"modified":"2015-01-23T11:05:20","modified_gmt":"2015-01-22T22:05:20","slug":"full-relro-for-bitlbee","status":"publish","type":"post","link":"https:\/\/micro.muppetz.com\/blog\/2013\/01\/10\/full-relro-for-bitlbee\/","title":{"rendered":"Full RELRO for Bitlbee"},"content":{"rendered":"<p>Took me ages of fucking around to get bitlbee to compile with full RELRO.<\/p>\n<p>In the end I had to hack the makefile.<br \/>\nAt line 182 (the line where it gets linked) I had to add the following:<\/p>\n<pre>180 $(OUTFILE): $(objects) $(subdirs)\r\n181 @echo '*' Linking $(OUTFILE)\r\n182 @$(CC) $(objects) $(subdirobjs) *-march=native -O2 -fstack-protector-all -fpic -pipe -Wl,-z,relro,-z,now* -o $(OUTFILE) $(LDFLAGS_BITLBEE) $(LFLAGS) $(EFLAGS)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Took me ages of fucking around to get bitlbee to compile with full RELRO. In the end I had to hack the makefile. At line 182 (the line where it gets linked) I had to add the following: 180 $(OUTFILE): $(objects) $(subdirs) 181 @echo &#8216;*&#8217; Linking $(OUTFILE) 182 @$(CC) $(objects) $(subdirobjs) *-march=native -O2 -fstack-protector-all -fpic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,18,10],"tags":[21,20],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-linux","category-security","category-technical","tag-linux","tag-security"],"_links":{"self":[{"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":1,"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions\/21"}],"wp:attachment":[{"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/micro.muppetz.com\/blog\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}