Anlogic FPGA Toolchain, License crack

For using the Anlogic FPGA toolchain if the license expires (so you don't have to keep on going back to beg for more hobbyist years!).

Compile a shared object to override the time() function.

RUN-1001 : Open license file /home/ubuntu/project/Tang/rel190228r4.4.433RHEL/license/Anlogic.lic
RUN-8418 ERROR: License expired!

hook.c  
------------
typedef long time_t;
time_t time(time_t * ptr){
    if(ptr)
        *ptr=0;
    return 0;
}

Compile
------------
gcc -fpic -shared hook.c -o hook.so

Run
------------
export LD_PRELOAD=$PWD/hook.so
./td -gui

Souroce link (Chinese)