Formatting .c/.h files and fix memory leakage issuesSigned-off-by: John Chung <john.chung@arm.com>Change-Id: Id8328f412c2724992d80c0b3f895c8f85bc4ae68
Shift section definitions into separate file, add testing.Change-Id: Idb0b41d7fa2999485580fca770958a27c1086f65