The ornamental design for a holder for elongated objects, as shown.
FIG. 1 is a top perspective view of a holder for elongated objects showing my new design;
FIG. 2 is a bottom perspective view thereof.