Adds support for two types of linked list, considering both page aligned and non page-aligned cases.