Hello, this is tira. You may find topics of interest here, which will range from homelabbing, C/C++/Assembly programming, some mathematics and more. If you have any inquires or noticed any mistakes, please contact me at: blog [at] asabbag [dot] com.
Creating and Accessing ELF sections, in userland and beyond
Userland: Land of the Free
Everything starts with a simple a.out. We will now demonstrate how to create and place variables into custom sections using GCC and Clang attributes, as well as accessing these sections using obscure linker features.
Creation
One very useful but not widely known GCC and Clang attribute is section, which allows the programmer to determine in which section a variable is placed. Normally, the compiler decides which variables go to which section in an object file (.o), and the linker combines all the object files that you provide it with, and merges the sections in the final ELF.
Flashing OpenWRT on a Cudy WR3000E
I was recently looking for a router to buy, my primary concerns being OpenWRT support, good amounts of ROM and RAM, and a not so expensive price. I came across the Cudy WR3000 series, and I decided to go for the Cudy WR3000E on Amazon. The router has 128MB of ROM, plenty of space for any packages or configuration one can make, and 256MB RAM, which is enough for my use case. You can see the full specification on the Cudy website.
…