pub fn build(rvas: &[u32], types: &[u8]) -> Vec<u8>
Builds a new base relocation directory with given rvas and types.
For optimal results, ensure the inputs are sorted by their rvas.