Question about flooring

Quick question. Just started remodeling my camper. Ripped out the old laminate, and now planning to put a layer of masonite over the old subfloor. Wondering if woodglue will hold it down tight since the old subfloor still has adhesive residue? I was thinking woodglue since it's thin and I can roll it on. Thoughts?